diff options
author | 1999-06-04 22:40:36 +0000 | |
---|---|---|
committer | 1999-06-04 22:40:36 +0000 | |
commit | b8d12826e6d64eb50f72b8878f54c6d41bd338e0 (patch) | |
tree | 46d0e366d7b97653d1ee24f95d53a7378e328fb6 | |
parent | use mkstemp; Peter.Galbavy@knowledge.com (diff) | |
download | wireguard-openbsd-b8d12826e6d64eb50f72b8878f54c6d41bd338e0.tar.xz wireguard-openbsd-b8d12826e6d64eb50f72b8878f54c6d41bd338e0.zip |
forgot to zero sunion
-rw-r--r-- | sys/netinet/ip_ipsp.c | 3 |
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; |