diff options
author | Matt Caswell <matt@openssl.org> | 2016-04-26 18:28:03 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-06-01 14:51:36 +0100 |
commit | fe2b7dfdf446088d5c1cc9dc9d49d131cc4ef7f9 (patch) | |
tree | 279618e989e0b2bb0ff62a42ea4f50852aa5e6a2 /apps/apps.c | |
parent | 0461b7ea7bd1112c4fa357545fc8a456138ed3af (diff) |
Free an X509_CRL in an error path
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/apps.c')
-rw-r--r-- | apps/apps.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/apps.c b/apps/apps.c index a3e1794c31..fca3775b77 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -1984,8 +1984,10 @@ static STACK_OF(X509_CRL) *crls_http_cb(X509_STORE_CTX *ctx, X509_NAME *nm) crldp = X509_get_ext_d2i(x, NID_crl_distribution_points, NULL, NULL); crl = load_crl_crldp(crldp); sk_DIST_POINT_pop_free(crldp, DIST_POINT_free); - if (!crl) + if (!crl) { + sk_X509_CRL_free(crls); return NULL; + } sk_X509_CRL_push(crls, crl); /* Try to download delta CRL */ crldp = X509_get_ext_d2i(x, NID_freshest_crl, NULL, NULL); |