]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
x509: Remove extraneous asn1_delete
authorSamuel Zeter <samuelzeter@gmail.com>
Thu, 2 Oct 2025 15:06:30 +0000 (01:06 +1000)
committerDaiki Ueno <ueno@gnu.org>
Mon, 6 Oct 2025 08:35:31 +0000 (17:35 +0900)
No need for deletion given we already call asn1_delete_structure2.

Signed-off-by: Samuel Zeter <samuelzeter@gmail.com>
lib/x509/privkey_pkcs8.c

index 4746a0ab890384236847c8ed37d9ad25e8d9446d..ec18fa8c48fa7da0174e0af2280eb4de9f9eb363 100644 (file)
@@ -274,7 +274,6 @@ inline static int _encode_privkey(gnutls_x509_privkey_t pkey,
 
 error:
        asn1_delete_structure2(&spk, ASN1_DELETE_FLAG_ZEROIZE);
-       asn1_delete_structure(&spk);
        return ret;
 }