diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2001-08-14 20:24:41 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2001-08-14 20:24:41 +0000 |
commit | d02fb79287c2caa1247e62dbc3ac20ea7c6034f3 (patch) | |
tree | 4b450bb83f84ae568654b8f080b7d8a9a876c6e3 /sbin | |
parent | 3fad600be6e00480a3f36bc1b8e5a687cb858c37 (diff) |
Proper length for PFKEYv2 messages in IPv4-in-IPv6 / IPv6-in-IPv4 flows.
Diffstat (limited to 'sbin')
-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 2d43341a41b..74c07e64b2c 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.82 2001/08/14 19:38:38 ho Exp $ */ +/* $OpenBSD: pf_key_v2.c,v 1.83 2001/08/14 20:24:40 ho Exp $ */ /* $EOM: pf_key_v2.c,v 1.79 2000/12/12 00:33:19 niklas Exp $ */ /* @@ -1653,6 +1653,7 @@ pf_key_v2_flow (struct sockaddr *laddr, struct sockaddr *lmask, addr = 0; } + len = sizeof *addr + PF_KEY_V2_ROUND (laddr->sa_len); addr = calloc (1, len); if (!addr) goto cleanup; |