diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2001-08-14 20:33:03 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2001-08-14 20:33:03 +0000 |
commit | 462d02605ce7c587ab6c5e22f9076892c7f85ceb (patch) | |
tree | bb7695f96ec80b2cccfecf37cf41dafc6ad38bb7 /sbin/isakmpd/pf_key_v2.c | |
parent | d02fb79287c2caa1247e62dbc3ac20ea7c6034f3 (diff) |
The same msg length fix for KAME cases.
Diffstat (limited to 'sbin/isakmpd/pf_key_v2.c')
-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; |