diff options
author | Richard Levitte <levitte@openssl.org> | 2003-01-30 10:27:43 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2003-01-30 10:27:43 +0000 |
commit | 4e78074b39063d19ebab54209d5cf6eceb770141 (patch) | |
tree | 028146d9f6412ec40e1f49e4b530c2af70b2b74f | |
parent | b637670f039cef574e96e60f5bd660b899221021 (diff) |
cert_sk isn't always allocated, so freeing it may cause a crash.
PR: 481
-rw-r--r-- | apps/ca.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1641,7 +1641,8 @@ err: BIO_free_all(out); BIO_free_all(in); - sk_X509_pop_free(cert_sk,X509_free); + if (cert_sk) + sk_X509_pop_free(cert_sk,X509_free); if (ret) ERR_print_errors(bio_err); app_RAND_write_file(randfile, bio_err); |