Source-Changes-HG archive

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

[src/netbsd-8]: src/sys/netinet6 Pull up following revision(s) (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/a5a98d0eaed4
branches:  netbsd-8
changeset: 434350:a5a98d0eaed4
user:      snj <snj%NetBSD.org@localhost>
date:      Tue Oct 24 09:00:22 2017 +0000

description:
Pull up following revision(s) (requested by ozaki-r in ticket #307):
        sys/netinet6/nd6.c: revision 1.236
Add missing NULL check
PR kern/52554

diffstat:

 sys/netinet6/nd6.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 884df014ccbe -r a5a98d0eaed4 sys/netinet6/nd6.c
--- a/sys/netinet6/nd6.c        Tue Oct 24 08:55:55 2017 +0000
+++ b/sys/netinet6/nd6.c        Tue Oct 24 09:00:22 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nd6.c,v 1.232.2.1 2017/07/07 13:57:26 martin Exp $     */
+/*     $NetBSD: nd6.c,v 1.232.2.2 2017/10/24 09:00:22 snj Exp $        */
 /*     $KAME: nd6.c,v 1.279 2002/06/08 11:16:51 itojun Exp $   */
 
 /*
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.232.2.1 2017/07/07 13:57:26 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.232.2.2 2017/10/24 09:00:22 snj Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -2321,6 +2321,11 @@
                created = true;
        }
 
+       if (ln == NULL) {
+               m_freem(m);
+               return ENETDOWN; /* better error? */
+       }
+
        LLE_WLOCK_ASSERT(ln);
 
        /* We don't have to do link-layer address resolution on a p2p link. */



Home | Main Index | Thread Index | Old Index