Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/netinet6 Apply patch (requested by itojun):



details:   https://anonhg.NetBSD.org/src/rev/c39f409533de
branches:  netbsd-1-5
changeset: 491297:c39f409533de
user:      he <he%NetBSD.org@localhost>
date:      Sun Apr 22 17:33:53 2001 +0000

description:
Apply patch (requested by itojun):
  Avoid passing NULL pointer to in6_ifawithscope.

diffstat:

 sys/netinet6/icmp6.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 949e9a5f0eaf -r c39f409533de sys/netinet6/icmp6.c
--- a/sys/netinet6/icmp6.c      Sat Apr 21 22:15:02 2001 +0000
+++ b/sys/netinet6/icmp6.c      Sun Apr 22 17:33:53 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: icmp6.c,v 1.33.2.10 2001/04/06 00:27:40 he Exp $       */
+/*     $NetBSD: icmp6.c,v 1.33.2.11 2001/04/22 17:33:53 he Exp $       */
 /*     $KAME: icmp6.c,v 1.146 2000/10/01 12:37:20 itojun Exp $ */
 
 /*
@@ -1827,7 +1827,7 @@
                src = &t;
        }
 
-       if (src == 0)
+       if (src == 0 && m->m_pkthdr.rcvif)
                /*
                 * This case matches to multicasts, our anycast, or unicasts
                 * that we do not own. Select a source address which has the



Home | Main Index | Thread Index | Old Index