Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet on getsockopt(IP_IPSEC_POLICY), make sure to ini...



details:   https://anonhg.NetBSD.org/src/rev/075fe38b7ad2
branches:  trunk
changeset: 502179:075fe38b7ad2
user:      itojun <itojun%NetBSD.org@localhost>
date:      Sat Jan 13 06:01:18 2001 +0000

description:
on getsockopt(IP_IPSEC_POLICY), make sure to initialize len

diffstat:

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

diffs (18 lines):

diff -r c1df9301f492 -r 075fe38b7ad2 sys/netinet/ip_output.c
--- a/sys/netinet/ip_output.c   Sat Jan 13 04:19:54 2001 +0000
+++ b/sys/netinet/ip_output.c   Sat Jan 13 06:01:18 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_output.c,v 1.79 2000/11/11 00:55:51 thorpej Exp $   */
+/*     $NetBSD: ip_output.c,v 1.80 2001/01/13 06:01:18 itojun Exp $    */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -1048,7 +1048,7 @@
                case IP_IPSEC_POLICY:
                {
                        caddr_t req = NULL;
-                       size_t len;
+                       size_t len = 0;
 
                        if (m) {
                                req = mtod(m, caddr_t);



Home | Main Index | Thread Index | Old Index