diff options
-rw-r--r-- | sbin/isakmpd/x509.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/isakmpd/x509.c b/sbin/isakmpd/x509.c index 34e9d398b50..86b02874b0c 100644 --- a/sbin/isakmpd/x509.c +++ b/sbin/isakmpd/x509.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509.c,v 1.115 2013/11/14 15:44:06 deraadt Exp $ */ +/* $OpenBSD: x509.c,v 1.116 2014/03/07 07:19:42 gerhard Exp $ */ /* $EOM: x509.c,v 1.54 2001/01/16 18:42:16 ho Exp $ */ /* @@ -1153,6 +1153,7 @@ x509_cert_get_subjects(void *scert, int *cnt, u_int8_t ***id, if (!*id) { log_print("x509_cert_get_subject: malloc (%lu) failed", *cnt * (unsigned long)sizeof **id); + *cnt = 0; goto fail; } *id_len = calloc(*cnt, sizeof **id_len); |