diff options
author | 2001-08-14 20:33:02 +0000 | |
---|---|---|
committer | 2001-08-14 20:33:02 +0000 | |
commit | 747e12708179549947c41ca3ba7dc69b5573f8dc (patch) | |
tree | ab4d55ac617e87e100301f6ba1b28c6f3058fea4 | |
parent | Proper length for PFKEYv2 messages in IPv4-in-IPv6 / IPv6-in-IPv4 flows. (diff) | |
download | wireguard-openbsd-747e12708179549947c41ca3ba7dc69b5573f8dc.tar.xz wireguard-openbsd-747e12708179549947c41ca3ba7dc69b5573f8dc.zip |
The same msg length fix for KAME cases.
-rw-r--r-- | sbin/isakmpd/pf_key_v2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/isakmpd/pf_key_v2.c b/sbin/isakmpd/pf_key_v2.c index 74c07e64b2c..9d19c73dd4b 100644 --- a/sbin/isakmpd/pf_key_v2.c +++ b/sbin/isakmpd/pf_key_v2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_key_v2.c,v 1.83 2001/08/14 20:24:40 ho Exp $ */ +/* $OpenBSD: pf_key_v2.c,v 1.84 2001/08/14 20:33:02 ho Exp $ */ /* $EOM: pf_key_v2.c,v 1.79 2000/12/12 00:33:19 niklas Exp $ */ /* @@ -1831,6 +1831,7 @@ pf_key_v2_flow (struct sockaddr *laddr, struct sockaddr *lmask, goto cleanup; addr = 0; + len = sizeof *addr + PF_KEY_V2_ROUND (raddr->sa_len); addr = calloc (1, len); if (!addr) goto cleanup; |