summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test/test_tortls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_tortls.c b/src/test/test_tortls.c
index 1bb70ada90..709c8dbd77 100644
--- a/src/test/test_tortls.c
+++ b/src/test/test_tortls.c
@@ -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);