diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-05 08:30:35 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-09-05 08:30:35 -0400 |
commit | 3b61bdb5aebe3890443e39eed4d79da93aa19c8b (patch) | |
tree | 946b5a25ea856d027319d07cf7eaa6f1eebea4aa /src/test/test_crypto.c | |
parent | 03efb67b42ce88ca6073eadc1b66d6151d646607 (diff) | |
download | tor-3b61bdb5aebe3890443e39eed4d79da93aa19c8b.tar.gz tor-3b61bdb5aebe3890443e39eed4d79da93aa19c8b.zip |
Try to fix new coverity warnings in unit tests.
Diffstat (limited to 'src/test/test_crypto.c')
-rw-r--r-- | src/test/test_crypto.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_crypto.c b/src/test/test_crypto.c index b08c5cbc22..81d2fa6f33 100644 --- a/src/test/test_crypto.c +++ b/src/test/test_crypto.c @@ -79,6 +79,7 @@ test_crypto_dh(void *arg) dh1_dup = crypto_dh_dup(dh1); s1len = crypto_dh_compute_secret(LOG_WARN, dh1_dup, p2, DH1024_KEY_LEN, s1, 50); + tt_i64_op(s1len, OP_GE, 0); tt_mem_op(s1,OP_EQ, s2, s1len); { |