Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 fix uninitialized variables



details:   https://anonhg.NetBSD.org/src/rev/aa2c81d8624e
branches:  trunk
changeset: 554079:aa2c81d8624e
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Oct 25 08:26:14 2003 +0000

description:
fix uninitialized variables

diffstat:

 sys/netinet6/ah_input.c    |  5 +++--
 sys/netinet6/esp_input.c   |  5 +++--
 sys/netinet6/raw_ip6.c     |  7 +++++--
 sys/netinet6/udp6_usrreq.c |  5 +++--
 4 files changed, 14 insertions(+), 8 deletions(-)

diffs (106 lines):

diff -r a3f6499ad037 -r aa2c81d8624e sys/netinet6/ah_input.c
--- a/sys/netinet6/ah_input.c   Sat Oct 25 08:13:28 2003 +0000
+++ b/sys/netinet6/ah_input.c   Sat Oct 25 08:26:14 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ah_input.c,v 1.42 2003/09/28 04:45:14 mycroft Exp $    */
+/*     $NetBSD: ah_input.c,v 1.43 2003/10/25 08:26:14 christos Exp $   */
 /*     $KAME: ah_input.c,v 1.64 2001/09/04 08:43:19 itojun Exp $       */
 
 /*
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ah_input.c,v 1.42 2003/09/28 04:45:14 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ah_input.c,v 1.43 2003/10/25 08:26:14 christos Exp $");
 
 #include "opt_inet.h"
 
@@ -929,6 +929,7 @@
        } else {
                m = NULL;
                ip6 = NULL;
+               off = 0;
        }
 
        if (ip6) {
diff -r a3f6499ad037 -r aa2c81d8624e sys/netinet6/esp_input.c
--- a/sys/netinet6/esp_input.c  Sat Oct 25 08:13:28 2003 +0000
+++ b/sys/netinet6/esp_input.c  Sat Oct 25 08:26:14 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: esp_input.c,v 1.33 2003/08/06 14:47:32 itojun Exp $    */
+/*     $NetBSD: esp_input.c,v 1.34 2003/10/25 08:26:14 christos Exp $  */
 /*     $KAME: esp_input.c,v 1.60 2001/09/04 08:43:19 itojun Exp $      */
 
 /*
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: esp_input.c,v 1.33 2003/08/06 14:47:32 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: esp_input.c,v 1.34 2003/10/25 08:26:14 christos Exp $");
 
 #include "opt_inet.h"
 
@@ -901,6 +901,7 @@
        } else {
                m = NULL;
                ip6 = NULL;
+               off = 0;
        }
 
        if (ip6) {
diff -r a3f6499ad037 -r aa2c81d8624e sys/netinet6/raw_ip6.c
--- a/sys/netinet6/raw_ip6.c    Sat Oct 25 08:13:28 2003 +0000
+++ b/sys/netinet6/raw_ip6.c    Sat Oct 25 08:26:14 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: raw_ip6.c,v 1.61 2003/09/06 03:12:54 itojun Exp $      */
+/*     $NetBSD: raw_ip6.c,v 1.62 2003/10/25 08:26:14 christos Exp $    */
 /*     $KAME: raw_ip6.c,v 1.82 2001/07/23 18:57:56 jinmei Exp $        */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: raw_ip6.c,v 1.61 2003/09/06 03:12:54 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: raw_ip6.c,v 1.62 2003/10/25 08:26:14 christos Exp $");
 
 #include "opt_ipsec.h"
 
@@ -428,6 +428,9 @@
                icmp6 = mtod(m, struct icmp6_hdr *);
                type = icmp6->icmp6_type;
                code = icmp6->icmp6_code;
+       } else {
+               type = 0;
+               code = 0;
        }
 
        M_PREPEND(m, sizeof(*ip6), M_DONTWAIT);
diff -r a3f6499ad037 -r aa2c81d8624e sys/netinet6/udp6_usrreq.c
--- a/sys/netinet6/udp6_usrreq.c        Sat Oct 25 08:13:28 2003 +0000
+++ b/sys/netinet6/udp6_usrreq.c        Sat Oct 25 08:26:14 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: udp6_usrreq.c,v 1.59 2003/09/06 03:12:55 itojun Exp $  */
+/*     $NetBSD: udp6_usrreq.c,v 1.60 2003/10/25 08:26:14 christos Exp $        */
 /*     $KAME: udp6_usrreq.c,v 1.86 2001/05/27 17:33:00 itojun Exp $    */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: udp6_usrreq.c,v 1.59 2003/09/06 03:12:55 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udp6_usrreq.c,v 1.60 2003/10/25 08:26:14 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/malloc.h>
@@ -181,6 +181,7 @@
                ip6 = NULL;
                cmdarg = NULL;
                sa6_src = &sa6_any;
+               off = 0;
        }
 
        if (ip6) {



Home | Main Index | Thread Index | Old Index