summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-07 06:42:01 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-07 06:42:01 +0000
commitad5421db0feb6c8cef6a608a5f3a09cefdf93f16 (patch)
tree6180797698b42112bc12d58cc799361f56a2de96 /sys
parent3c705659bdb179fe493b201c737caf6de88b7b8a (diff)
missing bzero! - now linklocal tcp works correctly
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/tcp_input.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index b662b6db9b7..86914df49c9 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.113 2002/05/31 04:43:25 angelos Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.114 2002/06/07 06:42:00 itojun Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -1146,6 +1146,7 @@ findpcb:
*/
am->m_len = sizeof(struct sockaddr_in6);
sin6 = mtod(am, struct sockaddr_in6 *);
+ bzero(sin6, sizeof(*sin6));
sin6->sin6_family = AF_INET6;
sin6->sin6_len = sizeof(struct sockaddr_in6);
sin6->sin6_addr = ipv6->ip6_src;
@@ -1171,6 +1172,7 @@ findpcb:
}
am->m_len = sizeof(struct sockaddr_in);
sin = mtod(am, struct sockaddr_in *);
+ bzero(sin, sizeof(*sin));
sin->sin_family = AF_INET;
sin->sin_len = sizeof(*sin);
sin->sin_addr = ip->ip_src;