aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-05-18 08:29:13 -0400
committerNick Mathewson <nickm@torproject.org>2016-05-18 08:29:13 -0400
commit159ea7a88f31aee2f84cf964c0d0000a5bd98970 (patch)
tree29b70ce2f0375bb139e38993e4a463e459e16918
parenta7f6e434be6aa402153af0c6dd3238c58e35ed27 (diff)
downloadtor-159ea7a88f31aee2f84cf964c0d0000a5bd98970.tar.gz
tor-159ea7a88f31aee2f84cf964c0d0000a5bd98970.zip
Fix a bad sizeof() in test_crypto.c. Harmless. Spotted by coverity.
-rw-r--r--src/test/test_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_crypto.c b/src/test/test_crypto.c
index 52059451a2..e6b250a677 100644
--- a/src/test/test_crypto.c
+++ b/src/test/test_crypto.c
@@ -126,7 +126,7 @@ test_crypto_dh(void *arg)
s1len = crypto_dh_compute_secret(LOG_WARN, dh1, p1, DH_BYTES, s1, 50);
tt_int_op(-1, OP_EQ, s1len);
- memset(p1, 0xff, sizeof(DH_BYTES)), /* 2^1024-1 */
+ memset(p1, 0xff, DH_BYTES), /* 2^1024-1 */
s1len = crypto_dh_compute_secret(LOG_WARN, dh1, p1, DH_BYTES, s1, 50);
tt_int_op(-1, OP_EQ, s1len);
}