Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet6 inet6: remove needless ifa_release.



details:   https://anonhg.NetBSD.org/src/rev/d5ec47076aef
branches:  trunk
changeset: 446429:d5ec47076aef
user:      roy <roy%NetBSD.org@localhost>
date:      Tue Dec 04 21:16:54 2018 +0000

description:
inet6: remove needless ifa_release.

diffstat:

 sys/netinet6/nd6_nbr.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r 75193480be62 -r d5ec47076aef sys/netinet6/nd6_nbr.c
--- a/sys/netinet6/nd6_nbr.c    Tue Dec 04 21:01:48 2018 +0000
+++ b/sys/netinet6/nd6_nbr.c    Tue Dec 04 21:16:54 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nd6_nbr.c,v 1.160 2018/12/04 21:01:48 roy Exp $        */
+/*     $NetBSD: nd6_nbr.c,v 1.161 2018/12/04 21:16:54 roy Exp $        */
 /*     $KAME: nd6_nbr.c,v 1.61 2001/02/10 16:06:14 jinmei Exp $        */
 
 /*
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6_nbr.c,v 1.160 2018/12/04 21:01:48 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6_nbr.c,v 1.161 2018/12/04 21:16:54 roy Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -306,11 +306,9 @@
                 */
                if (IN6_IS_ADDR_UNSPECIFIED(&saddr6))
                        nd6_dad_input(ifa, ndopts.nd_opts_nonce);
-               ifa_release(ifa, &psref_ia);
-               ifa = NULL;
-
                goto freeit;
        }
+
        ifa_release(ifa, &psref_ia);
        ifa = NULL;
 



Home | Main Index | Thread Index | Old Index