summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>1999-06-04 22:40:37 +0000
committerNiels Provos <provos@cvs.openbsd.org>1999-06-04 22:40:37 +0000
commit6677648a78a82dde35fdb2b0d93bd0834766fe61 (patch)
tree4191f306c50656f17a7623fd3d0a345a6ddb2afd
parentf798b4724d0fcb14ff24ce2d35f0c5ad661d5bdc (diff)
forgot to zero sunion
-rw-r--r--sys/netinet/ip_ipsp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c
index 570ff19db66..0fbfdc0c04d 100644
--- a/sys/netinet/ip_ipsp.c
+++ b/sys/netinet/ip_ipsp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipsp.c,v 1.44 1999/05/23 09:04:46 niklas Exp $ */
+/* $OpenBSD: ip_ipsp.c,v 1.45 1999/06/04 22:40:36 provos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -238,6 +238,7 @@ check_ipsec_policy(struct inpcb *inp, u_int32_t daddr)
gw = (struct sockaddr_encap *) (re->re_rt->rt_gateway);
if (gw->sen_type == SENT_IPSP) {
+ bzero(&sunion, sizeof(sunion));
sunion.sin.sin_family = AF_INET;
sunion.sin.sin_len = sizeof(struct sockaddr_in);
sunion.sin.sin_addr = gw->sen_ipsp_dst;