diff options
author | Andrea Shepard <andrea@torproject.org> | 2016-08-26 00:02:00 +0000 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2016-08-26 00:02:00 +0000 |
commit | 33a3e6f7183c791d7aa544e3878c66f4ede9a2e7 (patch) | |
tree | 919ba8e1951b4f1acfa35232d91af4406144d051 /src/test/test_oos.c | |
parent | 32fbc9738a18e8d66c94e238e5afd4631d295692 (diff) | |
download | tor-33a3e6f7183c791d7aa544e3878c66f4ede9a2e7.tar.gz tor-33a3e6f7183c791d7aa544e3878c66f4ede9a2e7.zip |
Avoid asserts in oos/kill_conn_list unit test
Diffstat (limited to 'src/test/test_oos.c')
-rw-r--r-- | src/test/test_oos.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_oos.c b/src/test/test_oos.c index 3afb68b27a..db06625116 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); |