mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-12 22:23:49 +01:00
fix an already-existing bug in the unit tests
where the or_conn for testing the failure cache would be initialized with random stack data, so e.g. its potentially_used_for_bootstrapping field would start out at some random value.
This commit is contained in:
parent
5ad126a51b
commit
5ee85c1fac
@ -826,6 +826,7 @@ test_failed_orconn_tracker(void *arg)
|
||||
|
||||
/* Prepare the OR connection that will be used in this test */
|
||||
or_connection_t or_conn;
|
||||
memset(&or_conn, 0, sizeof(or_conn));
|
||||
tt_int_op(AF_INET,OP_EQ, tor_addr_parse(&or_conn.canonical_orport.addr,
|
||||
"18.0.0.1"));
|
||||
tt_int_op(AF_INET,OP_EQ, tor_addr_parse(&or_conn.base_.addr, "18.0.0.1"));
|
||||
|
Loading…
Reference in New Issue
Block a user