diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-04-04 12:06:54 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-04-04 12:06:54 -0400 |
commit | d22ce149c82c257398555d35cf76cab4973a8cf9 (patch) | |
tree | 889f9487e11613847107a1b5c8149538c250cc15 /src | |
parent | 1bb6e3b503bfe4f7f5a8ee707433b6f9973e4dea (diff) | |
download | tor-d22ce149c82c257398555d35cf76cab4973a8cf9.tar.gz tor-d22ce149c82c257398555d35cf76cab4973a8cf9.zip |
Test for circuit_set_rend_token(.,.,NULL)
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test_circuitlist.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/test_circuitlist.c b/src/test/test_circuitlist.c index ee62cd251d..2cfe5565a0 100644 --- a/src/test/test_circuitlist.c +++ b/src/test/test_circuitlist.c @@ -238,6 +238,11 @@ test_rend_token_maps(void *arg) tt_ptr_op(c4->rendinfo, !=, NULL); test_mem_op(c4->rendinfo, ==, tok3, REND_TOKEN_LEN); + /* Now clear c4's cookie. */ + circuit_set_intro_point_digest(c4, NULL); + tt_ptr_op(c4->rendinfo, ==, NULL); + tt_ptr_op(NULL, ==, circuit_get_intro_point(tok3)); + done: circuit_free(TO_CIRCUIT(c1)); circuit_free(TO_CIRCUIT(c2)); |