Explorar o código

Looks like I added one X509_free too many :(

Nick Mathewson %!s(int64=9) %!d(string=hai) anos
pai
achega
2e99371eb9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/test/test_tortls.c

+ 1 - 1
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);