[tor-commits] [tor/master] Avoid asserts in oos/kill_conn_list unit test
nickm at torproject.org
nickm at torproject.org
Fri Aug 26 13:46:46 UTC 2016
commit 33a3e6f7183c791d7aa544e3878c66f4ede9a2e7
Author: Andrea Shepard <andrea at torproject.org>
Date: Fri Aug 26 00:02:00 2016 +0000
Avoid asserts in oos/kill_conn_list unit test
---
src/test/test_oos.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/test/test_oos.c b/src/test/test_oos.c
index 3afb68b..db06625 100644
--- a/src/test/test_oos.c
+++ b/src/test/test_oos.c
@@ -294,6 +294,8 @@ test_oos_kill_conn_list(void *arg)
dir_c2 = tor_malloc_zero(sizeof(*dir_c2));
dir_c2->base_.magic = DIR_CONNECTION_MAGIC;
dir_c2->base_.type = CONN_TYPE_DIR;
+ dir_c2->base_.state = DIR_CONN_STATE_MIN_;
+ dir_c2->base_.purpose = DIR_PURPOSE_MIN_;
c2 = TO_CONN(dir_c2);
tt_assert(c1 != NULL);
More information about the tor-commits
mailing list