diff options
Diffstat (limited to 'lib/x509/pkcs12.c')
-rw-r--r-- | lib/x509/pkcs12.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/x509/pkcs12.c b/lib/x509/pkcs12.c index 16a015cb7d..2b7b8d6402 100644 --- a/lib/x509/pkcs12.c +++ b/lib/x509/pkcs12.c @@ -1670,6 +1670,7 @@ gnutls_pkcs12_simple_parse(gnutls_pkcs12_t p12, if (ret < 0) { gnutls_assert(); gnutls_x509_crt_deinit(this_cert); + this_cert = NULL; goto done; } @@ -1682,6 +1683,7 @@ gnutls_pkcs12_simple_parse(gnutls_pkcs12_t p12, if (ret < 0) { gnutls_assert(); gnutls_x509_crt_deinit(this_cert); + this_cert = NULL; goto done; } @@ -1721,6 +1723,7 @@ gnutls_pkcs12_simple_parse(gnutls_pkcs12_t p12, } else { gnutls_x509_crt_deinit (this_cert); + this_cert = NULL; } } break; @@ -1743,6 +1746,7 @@ gnutls_pkcs12_simple_parse(gnutls_pkcs12_t p12, if (ret < 0) { gnutls_assert(); gnutls_x509_crl_deinit(*crl); + *crl = NULL; goto done; } break; |