summaryrefslogtreecommitdiff
path: root/sys/netinet6/nd6.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-05-15 11:29:15 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-05-15 11:29:15 +0000
commit2873f4405d35a35864debe9fc9a5cb2d9a51108f (patch)
treeb2eed571d2bb172167cfa7b7e10a23ca99652e4a /sys/netinet6/nd6.c
parent8edb6da71442d2094b57a6c32e4ee7eef169841d (diff)
use IFAFREE, not ifa_refcnt--.
Diffstat (limited to 'sys/netinet6/nd6.c')
-rw-r--r--sys/netinet6/nd6.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c
index 43b447cd7ff..bb016640c39 100644
--- a/sys/netinet6/nd6.c
+++ b/sys/netinet6/nd6.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: nd6.c,v 1.13 2000/04/27 10:46:17 itojun Exp $ */
-/* $KAME: nd6.c,v 1.56 2000/04/19 06:17:43 itojun Exp $ */
+/* $OpenBSD: nd6.c,v 1.14 2000/05/15 11:29:14 itojun Exp $ */
+/* $KAME: nd6.c,v 1.62 2000/05/09 11:35:55 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -1164,7 +1164,7 @@ nd6_rtrequest(req, rt, sa)
* of the loopback address.
*/
if (ifa != rt->rt_ifa) {
- rt->rt_ifa->ifa_refcnt--;
+ IFAFREE(rt->rt_ifa);
ifa->ifa_refcnt++;
rt->rt_ifa = ifa;
}