From b62acc4804f1178c7d788bb7407bfb0bdc4fc9c7 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Wed, 5 Nov 2014 13:35:43 +0100 Subject: Fix double-free in gnutls_pkcs12_simple_parse() --- lib/x509/pkcs12.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/x509/pkcs12.c b/lib/x509/pkcs12.c index db0f6e3802..7d1b867912 100644 --- a/lib/x509/pkcs12.c +++ b/lib/x509/pkcs12.c @@ -1584,7 +1584,6 @@ gnutls_pkcs12_simple_parse (gnutls_pkcs12_t p12, if (ret < 0) { gnutls_assert (); - gnutls_x509_privkey_deinit (*key); goto done; } @@ -1595,7 +1594,6 @@ gnutls_pkcs12_simple_parse (gnutls_pkcs12_t p12, if (ret < 0) { gnutls_assert (); - gnutls_x509_privkey_deinit (*key); goto done; } -- cgit v1.2.1