Skip to content

Commit 7a4e08c

Browse files
Sashannhorman
authored andcommitted
dane_match_cert() should X509_free() on ->mcert instead
of OPENSSL_free() Fixes: 170b735 "DANE support for X509_verify_cert()" Reviewed-by: Eugene Syromiatnikov <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> Reviewed-by: Paul Dale <[email protected]> Reviewed-by: Neil Horman <[email protected]> MergeDate: Thu Mar 5 12:37:17 2026 (Merged from #30250) (cherry picked from commit 8b5cd6a)
1 parent 1b180a9 commit 7a4e08c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crypto/x509/x509_vfy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2938,7 +2938,7 @@ static int dane_match_cert(X509_STORE_CTX *ctx, X509 *cert, int depth)
29382938
if (matched || dane->mdpth < 0) {
29392939
dane->mdpth = depth;
29402940
dane->mtlsa = t;
2941-
OPENSSL_free(dane->mcert);
2941+
X509_free(dane->mcert);
29422942
dane->mcert = cert;
29432943
X509_up_ref(cert);
29442944
}

0 commit comments

Comments
 (0)