diff options
author | Pauli <paul.dale@oracle.com> | 2017-07-06 01:10:28 +0200 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2017-07-13 23:31:29 +0200 |
commit | 9e206ce5f80172136b503ca23fbd8e53b78eb4b7 (patch) | |
tree | d3942855040ebee306a234140f9f62b5d33177f3 /test/bntest.c | |
parent | Add sanity test for certificate table (diff) | |
download | openssl-9e206ce5f80172136b503ca23fbd8e53b78eb4b7.tar.xz openssl-9e206ce5f80172136b503ca23fbd8e53b78eb4b7.zip |
Fix some issues raise by coverity in the tests.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3846)
Diffstat (limited to 'test/bntest.c')
-rw-r--r-- | test/bntest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/bntest.c b/test/bntest.c index 00bdf3fd09..59148b0366 100644 --- a/test/bntest.c +++ b/test/bntest.c @@ -1367,9 +1367,9 @@ static int file_modexp(STANZA *s) "0000000000000000000000000000000000000000000000000000000000000000" "0000000000000000000000000000000000000000000000000000000000000000" "0000000000000000000000000000000000000000000000000000000001"); - BN_mod_exp(d, a, b, c, ctx); - BN_mul(e, a, a, ctx); - if (!TEST_BN_eq(d, e)) + if (!TEST_true(BN_mod_exp(d, a, b, c, ctx)) + || !TEST_true(BN_mul(e, a, a, ctx)) + || !TEST_BN_eq(d, e)) goto err; st = 1; |