Avoid asserts in oos/kill_conn_list unit test

This commit is contained in:
Andrea Shepard 2016-08-26 00:02:00 +00:00
parent 32fbc9738a
commit 33a3e6f718

View File

@ -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);