]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Fixed leaks in PKCS #8 decoding
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 9 Jun 2012 09:48:02 +0000 (11:48 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 9 Jun 2012 09:48:02 +0000 (11:48 +0200)
lib/x509/privkey_pkcs8.c

index f83582af116656af43da0222f8fa84a49f36381f..0d90f297566e02204938957a5a5ecdfb6bb21aaf 100644 (file)
@@ -1385,7 +1385,7 @@ read_pbkdf2_params (ASN1_TYPE pbes2_asn,
   /* We don't read the PRF. We only use the default.
    */
 
-  return 0;
+  result = 0;
 
 error:
   asn1_delete_structure (&pbkdf2_asn);
@@ -1593,8 +1593,8 @@ read_pbe_enc_params (ASN1_TYPE pbes2_asn,
       goto error;
     }
   _gnutls_hard_log ("IV.size: %d\n", params->iv_size);
-
-  return 0;
+  
+  result = 0;
 
 error:
   asn1_delete_structure (&pbe_asn);