mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
test: Fix coverity CID 1439129
One HSv3 unit test used "tor_memeq()" without checking the return value. This commit changes that to use "tt_mem_op()" to actually make the test validate something :). Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
064d3e7497
commit
7ff67d0e90
@ -241,11 +241,11 @@ hs_helper_desc_equal(const hs_descriptor_t *desc1,
|
||||
hs_desc_authorized_client_t
|
||||
*client1 = smartlist_get(desc1->superencrypted_data.clients, i),
|
||||
*client2 = smartlist_get(desc2->superencrypted_data.clients, i);
|
||||
tor_memeq(client1->client_id, client2->client_id,
|
||||
tt_mem_op(client1->client_id, OP_EQ, client2->client_id,
|
||||
sizeof(client1->client_id));
|
||||
tor_memeq(client1->iv, client2->iv,
|
||||
tt_mem_op(client1->iv, OP_EQ, client2->iv,
|
||||
sizeof(client1->iv));
|
||||
tor_memeq(client1->encrypted_cookie, client2->encrypted_cookie,
|
||||
tt_mem_op(client1->encrypted_cookie, OP_EQ, client2->encrypted_cookie,
|
||||
sizeof(client1->encrypted_cookie));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user