diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-07-14 09:06:44 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-07-14 09:06:44 -0400 |
commit | bbc75faed1f7b73104ee706fc469249ad8f3d15c (patch) | |
tree | 00d098ff03fcec82638f862f7130a25be51d3fdd /src/test/test_link_handshake.c | |
parent | 66258f8878abe6323c56bcf0b20796e1c43d66fc (diff) | |
parent | c1afbbe8feff1b803f721079b59a00438676045e (diff) | |
download | tor-bbc75faed1f7b73104ee706fc469249ad8f3d15c.tar.gz tor-bbc75faed1f7b73104ee706fc469249ad8f3d15c.zip |
Merge branch 'maint-0.3.0' into maint-0.3.1
Diffstat (limited to 'src/test/test_link_handshake.c')
-rw-r--r-- | src/test/test_link_handshake.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test_link_handshake.c b/src/test/test_link_handshake.c index 99f47c0344..c5508b0f04 100644 --- a/src/test/test_link_handshake.c +++ b/src/test/test_link_handshake.c @@ -234,6 +234,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); @@ -297,7 +298,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)); |