aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_circuitmux.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-02-04 12:30:48 -0500
committerNick Mathewson <nickm@torproject.org>2016-02-04 12:30:48 -0500
commit1bac468882fd732460d8a25735131d632f977bfe (patch)
tree5d0abc611d1a95ce06b4146237a96df469c7811a /src/test/test_circuitmux.c
parent5da517e6897c4b997bb165dfd11e95f8f9c2bbbe (diff)
downloadtor-1bac468882fd732460d8a25735131d632f977bfe.tar.gz
tor-1bac468882fd732460d8a25735131d632f977bfe.zip
Fix two problems in the 0.2.8.x unit tests
1. We were sometimes using libevent uninitialized, which is Not Allowed. 2. The malformed-PTR dns test was supposed to get a -1 output... but the test was wrong, since it forgot that in-addr.arpa addresses are in reverse order. Bugs not in any released tor.
Diffstat (limited to 'src/test/test_circuitmux.c')
-rw-r--r--src/test/test_circuitmux.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/test/test_circuitmux.c b/src/test/test_circuitmux.c
index 6d93731eea..5c72fc656d 100644
--- a/src/test/test_circuitmux.c
+++ b/src/test/test_circuitmux.c
@@ -36,11 +36,7 @@ test_cmux_destroy_cell_queue(void *arg)
circuit_t *circ = NULL;
cell_queue_t *cq = NULL;
packed_cell_t *pc = NULL;
- tor_libevent_cfg cfg;
- memset(&cfg, 0, sizeof(cfg));
-
- tor_libevent_initialize(&cfg);
scheduler_init();
(void) arg;