Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 make sure we don't touch uninitialized pointer....



details:   https://anonhg.NetBSD.org/src/rev/6fa4f8baae2f
branches:  trunk
changeset: 500054:6fa4f8baae2f
user:      itojun <itojun%NetBSD.org@localhost>
date:      Mon Dec 04 12:11:49 2000 +0000

description:
make sure we don't touch uninitialized pointer.  from: fvdl

diffstat:

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

diffs (19 lines):

diff -r c8dfb5de89ce -r 6fa4f8baae2f sys/netinet6/in6.c
--- a/sys/netinet6/in6.c        Mon Dec 04 12:02:08 2000 +0000
+++ b/sys/netinet6/in6.c        Mon Dec 04 12:11:49 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in6.c,v 1.37 2000/11/05 17:17:16 onoe Exp $    */
+/*     $NetBSD: in6.c,v 1.38 2000/12/04 12:11:49 itojun Exp $  */
 /*     $KAME: in6.c,v 1.107 2000/10/06 04:58:30 itojun Exp $   */
 
 /*
@@ -411,7 +411,8 @@
                        }
                }
                ia = in6ifa_ifpwithaddr(ifp, &ifra->ifra_addr.sin6_addr);
-       }
+       } else
+               ia = NULL;
 
        switch (cmd) {
 



Home | Main Index | Thread Index | Old Index