Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet need to bzero() before rtalloc. KAME PR 432



details:   https://anonhg.NetBSD.org/src/rev/cc43710a43de
branches:  trunk
changeset: 534069:cc43710a43de
user:      itojun <itojun%NetBSD.org@localhost>
date:      Sun Jul 14 21:09:17 2002 +0000

description:
need to bzero() before rtalloc.  KAME PR 432

diffstat:

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

diffs (26 lines):

diff -r 2f4165d0e6b1 -r cc43710a43de sys/netinet/in_gif.c
--- a/sys/netinet/in_gif.c      Sun Jul 14 21:02:41 2002 +0000
+++ b/sys/netinet/in_gif.c      Sun Jul 14 21:09:17 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in_gif.c,v 1.27 2002/06/09 16:33:38 itojun Exp $       */
+/*     $NetBSD: in_gif.c,v 1.28 2002/07/14 21:09:17 itojun Exp $       */
 /*     $KAME: in_gif.c,v 1.66 2001/07/29 04:46:09 itojun Exp $ */
 
 /*
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in_gif.c,v 1.27 2002/06/09 16:33:38 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in_gif.c,v 1.28 2002/07/14 21:09:17 itojun Exp $");
 
 #include "opt_inet.h"
 #include "opt_iso.h"
@@ -187,6 +187,7 @@
        if (dst->sin_family != sin_dst->sin_family ||
            dst->sin_addr.s_addr != sin_dst->sin_addr.s_addr) {
                /* cache route doesn't match */
+               bzero(dst, sizeof(*dst));
                dst->sin_family = sin_dst->sin_family;
                dst->sin_len = sizeof(struct sockaddr_in);
                dst->sin_addr = sin_dst->sin_addr;



Home | Main Index | Thread Index | Old Index