diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-02-23 15:29:56 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-02-23 15:29:56 +0000 |
commit | 3ac4cd31333ac50b260a50a4dba3159c166f3842 (patch) | |
tree | 571c5d52c9019236333e01d03a7df90d9779361e /sbin/isakmpd | |
parent | eeec1f347171a41707419e89deee7d71381aea55 (diff) |
Allocate larger buffer for generated policies.
Diffstat (limited to 'sbin/isakmpd')
-rw-r--r-- | sbin/isakmpd/x509.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/isakmpd/x509.c b/sbin/isakmpd/x509.c index 4610a96ab7d..b8b09d85df2 100644 --- a/sbin/isakmpd/x509.c +++ b/sbin/isakmpd/x509.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509.c,v 1.41 2001/02/18 23:16:14 angelos Exp $ */ +/* $OpenBSD: x509.c,v 1.42 2001/02/23 15:29:55 angelos Exp $ */ /* $EOM: x509.c,v 1.54 2001/01/16 18:42:16 ho Exp $ */ /* @@ -214,7 +214,8 @@ x509_generate_kn (X509 *cert) } LC (RSA_free, (key)); - buf = calloc (strlen (fmt) + strlen (ikey) + strlen (skey), sizeof (char)); + buf = calloc (strlen (fmt) + strlen (ikey) + strlen (skey) + 56, + sizeof (char)); if (!buf) { log_error ("x509_generate_kn: " |