Test for circuit_set_rend_token(.,.,NULL)

This commit is contained in:
Nick Mathewson 2014-04-04 12:06:54 -04:00
parent 1bb6e3b503
commit d22ce149c8

View File

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