mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 23:21:38 +01:00
Looks like I added one X509_free too many :(
This commit is contained in:
parent
9e2c4ee557
commit
2e99371eb9
1 changed files with 1 additions and 1 deletions
|
@ -1466,11 +1466,11 @@ test_tortls_try_to_extract_certs_from_tls(void *ignored)
|
|||
|
||||
sk_X509_push(sess->cert_chain, c1);
|
||||
sk_X509_push(sess->cert_chain, c2);
|
||||
|
||||
try_to_extract_certs_from_tls(LOG_WARN, tls, &cert, &id_cert);
|
||||
tt_assert(cert == c1);
|
||||
tt_assert(id_cert);
|
||||
X509_free(cert); /* decrease refcnt */
|
||||
X509_free(id_cert); /* decrease refcnt */
|
||||
|
||||
done:
|
||||
sk_X509_free(sess->cert_chain);
|
||||
|
|
Loading…
Add table
Reference in a new issue