aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-07-14 09:06:33 -0400
committerNick Mathewson <nickm@torproject.org>2017-07-14 09:06:33 -0400
commitc1afbbe8feff1b803f721079b59a00438676045e (patch)
tree088d893f2ff7e9da69f06b5aceebea614c7c48f2 /src
parent66c85cd8812c7d862edafc03b8e04bf3555733a3 (diff)
parent759154b1ad8b2b5fabf09cb1dde93177c65d05a8 (diff)
downloadtor-c1afbbe8feff1b803f721079b59a00438676045e.tar.gz
tor-c1afbbe8feff1b803f721079b59a00438676045e.zip
Merge branch 'bug22803_030' into maint-0.3.0
Diffstat (limited to 'src')
-rw-r--r--src/test/test_link_handshake.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test_link_handshake.c b/src/test/test_link_handshake.c
index d81f9e8eb2..467bba3a64 100644
--- a/src/test/test_link_handshake.c
+++ b/src/test/test_link_handshake.c
@@ -241,6 +241,7 @@ test_link_handshake_certs_ok(void *arg)
}
channel_tls_process_certs_cell(cell2, chan1);
mock_peer_cert_expect_tortls = NULL;
+ tor_x509_cert_free(mock_peer_cert);
mock_peer_cert = NULL;
tor_assert(c1->handshake_state->authenticated);
@@ -304,7 +305,8 @@ test_link_handshake_certs_ok(void *arg)
UNMOCK(tor_tls_get_peer_cert);
UNMOCK(tor_tls_get_own_cert);
tor_x509_cert_free(mock_own_cert);
- mock_own_cert = NULL;
+ tor_x509_cert_free(mock_peer_cert);
+ mock_own_cert = mock_peer_cert = NULL;
memset(c1->identity_digest, 0, sizeof(c1->identity_digest));
memset(c2->identity_digest, 0, sizeof(c2->identity_digest));
connection_free_(TO_CONN(c1));