summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-11-05 13:35:43 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-11-05 13:35:43 +0100
commitb62acc4804f1178c7d788bb7407bfb0bdc4fc9c7 (patch)
treec7a8f82e79f3902316a90d2ec2deb4ac0b6fab9d
parent546e7b37f496c3591bbde20097a0890f4a603543 (diff)
downloadgnutls-b62acc4804f1178c7d788bb7407bfb0bdc4fc9c7.tar.gz
Fix double-free in gnutls_pkcs12_simple_parse()
-rw-r--r--lib/x509/pkcs12.c2
1 files changed, 0 insertions, 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;
}