diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-04 20:46:46 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-09-04 20:46:46 -0400 |
commit | 03efb67b42ce88ca6073eadc1b66d6151d646607 (patch) | |
tree | 1d74fcd4dda50c92feee66580bb3e653d72085b4 /src/test/test_tortls.c | |
parent | eeba944ee0a642ef105b639f1bb0580fae28d3ab (diff) | |
download | tor-03efb67b42ce88ca6073eadc1b66d6151d646607.tar.gz tor-03efb67b42ce88ca6073eadc1b66d6151d646607.zip |
Debug one last reference-counting issue that only appeared on openssl master
Diffstat (limited to 'src/test/test_tortls.c')
-rw-r--r-- | src/test/test_tortls.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/test/test_tortls.c b/src/test/test_tortls.c index 8e8487a408..7ab4b5c2aa 100644 --- a/src/test/test_tortls.c +++ b/src/test/test_tortls.c @@ -133,8 +133,10 @@ fixed_try_to_extract_certs_from_tls(int severity, tor_tls_t *tls, { (void) severity; (void) tls; - *cert_out = fixed_try_to_extract_certs_from_tls_cert_out_result; - *id_cert_out = fixed_try_to_extract_certs_from_tls_id_cert_out_result; + *cert_out = tor_x509_cert_impl_dup_( + fixed_try_to_extract_certs_from_tls_cert_out_result); + *id_cert_out = tor_x509_cert_impl_dup_( + fixed_try_to_extract_certs_from_tls_id_cert_out_result); } static void @@ -498,6 +500,10 @@ test_tortls_verify(void *ignored) UNMOCK(try_to_extract_certs_from_tls); tor_x509_cert_impl_free(cert1); tor_x509_cert_impl_free(cert2); + tor_x509_cert_impl_free(validCert); + tor_x509_cert_impl_free(invalidCert); + tor_x509_cert_impl_free(caCert); + tor_free(tls); crypto_pk_free(k); } |