summaryrefslogtreecommitdiff
path: root/src/test/test_tortls.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-08-31 13:18:13 -0400
committerNick Mathewson <nickm@torproject.org>2016-08-31 13:18:13 -0400
commit69dce0903187abc0a48606884c88588d276086d7 (patch)
tree5765797fe077f65d00fcef63a389eae8b0a78a41 /src/test/test_tortls.c
parent871b711f1016d0394ca1aae84cdfa267d213eb45 (diff)
downloadtor-69dce0903187abc0a48606884c88588d276086d7.tar.gz
tor-69dce0903187abc0a48606884c88588d276086d7.zip
Do not call tor_tls_server_info_callback(NULL) from tests.
This isn't valid behavior, and it causes a crash when you run the unit tests at --debug. I've added an IF_BUG_ONCE() check for this case.
Diffstat (limited to 'src/test/test_tortls.c')
-rw-r--r--src/test/test_tortls.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/test/test_tortls.c b/src/test/test_tortls.c
index 3a048fb1f0..9115823f31 100644
--- a/src/test/test_tortls.c
+++ b/src/test/test_tortls.c
@@ -1831,8 +1831,6 @@ test_tortls_server_info_callback(void *ignored)
tls->magic = TOR_TLS_MAGIC;
tls->ssl = ssl;
- tor_tls_server_info_callback(NULL, 0, 0);
-
SSL_set_state(ssl, SSL3_ST_SW_SRVR_HELLO_A);
mock_clean_saved_logs();
tor_tls_server_info_callback(ssl, SSL_CB_ACCEPT_LOOP, 0);