summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2002-06-07 20:26:23 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2002-06-07 20:26:23 +0000
commit594c5a16fc05b1707f9c41afaad2b94d539ffd5c (patch)
tree3c6aca6ae17d2ae7854c00d33d9a0621746c56c2
parentf7ac8149057e5077284b3f0220371679fb714463 (diff)
Also allocate space for the attribute header.
-rw-r--r--sbin/isakmpd/isakmp_cfg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/isakmpd/isakmp_cfg.c b/sbin/isakmpd/isakmp_cfg.c
index dd52874164d..e2c9bb8d61c 100644
--- a/sbin/isakmpd/isakmp_cfg.c
+++ b/sbin/isakmpd/isakmp_cfg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isakmp_cfg.c,v 1.10 2002/06/07 19:53:19 ho Exp $ */
+/* $OpenBSD: isakmp_cfg.c,v 1.11 2002/06/07 20:26:22 ho Exp $ */
/*
* Copyright (c) 2001 Niklas Hallqvist. All rights reserved.
@@ -202,6 +202,7 @@ cfg_initiator_send_ATTR (struct message *msg)
return 0;
}
+ attrlen += ISAKMP_ATTRIBUTE_SZ;
attrp = calloc (1, attrlen);
if (!attrp)
{