Module Name:    src
Committed By:   roy
Date:           Tue Dec  4 21:16:54 UTC 2018

Modified Files:
        src/sys/netinet6: nd6_nbr.c

Log Message:
inet6: remove needless ifa_release.


To generate a diff of this commit:
cvs rdiff -u -r1.160 -r1.161 src/sys/netinet6/nd6_nbr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet6/nd6_nbr.c
diff -u src/sys/netinet6/nd6_nbr.c:1.160 src/sys/netinet6/nd6_nbr.c:1.161
--- src/sys/netinet6/nd6_nbr.c:1.160	Tue Dec  4 21:01:48 2018
+++ src/sys/netinet6/nd6_nbr.c	Tue Dec  4 21:16:54 2018
@@ -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 @@ nd6_ns_input(struct mbuf *m, int off, in
 		 */
 		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;
 

Reply via email to