From 2873f4405d35a35864debe9fc9a5cb2d9a51108f Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Mon, 15 May 2000 11:29:15 +0000 Subject: use IFAFREE, not ifa_refcnt--. --- sys/netinet6/nd6.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/netinet6') 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; } -- cgit v1.2.3