summaryrefslogtreecommitdiff
path: root/src/test/test_hs_client.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-04-30 14:49:05 -0400
committerNick Mathewson <nickm@torproject.org>2019-04-30 14:49:05 -0400
commit295feeb09377c4d78f9ee43ec3197b908d7cb960 (patch)
tree9fe43c9444b3812bc585487e20442056a2d08735 /src/test/test_hs_client.c
parent0034f1095680e2b05c19ec13368ddc936a53058a (diff)
downloadtor-295feeb09377c4d78f9ee43ec3197b908d7cb960.tar.gz
tor-295feeb09377c4d78f9ee43ec3197b908d7cb960.zip
Replace all remaining tor_mem_is_zero() with fast_mem_is_zero()
Diffstat (limited to 'src/test/test_hs_client.c')
-rw-r--r--src/test/test_hs_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_hs_client.c b/src/test/test_hs_client.c
index 8362b6cbda..6fd80051fd 100644
--- a/src/test/test_hs_client.c
+++ b/src/test/test_hs_client.c
@@ -395,7 +395,7 @@ test_client_pick_intro(void *arg)
tt_assert(fetched_desc);
tt_mem_op(fetched_desc->subcredential, OP_EQ, desc->subcredential,
DIGEST256_LEN);
- tt_assert(!tor_mem_is_zero((char*)fetched_desc->subcredential,
+ tt_assert(!fast_mem_is_zero((char*)fetched_desc->subcredential,
DIGEST256_LEN));
tor_free(encoded);
}
@@ -433,7 +433,7 @@ test_client_pick_intro(void *arg)
for (int i = 0; i < 64; ++i) {
extend_info_t *ip = client_get_random_intro(&service_kp.pubkey);
tor_assert(ip);
- tt_assert(!tor_mem_is_zero((char*)ip->identity_digest, DIGEST_LEN));
+ tt_assert(!fast_mem_is_zero((char*)ip->identity_digest, DIGEST_LEN));
tt_mem_op(ip->identity_digest, OP_EQ, chosen_intro_ei->identity_digest,
DIGEST_LEN);
extend_info_free(ip);