From 3b61bdb5aebe3890443e39eed4d79da93aa19c8b Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 5 Sep 2018 08:30:35 -0400 Subject: Try to fix new coverity warnings in unit tests. --- src/test/test_crypto.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/test/test_crypto.c') 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); { -- cgit v1.2.3-54-g00ecf