diff options
author | Pauli <paul.dale@oracle.com> | 2017-07-06 09:10:28 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2017-07-14 07:31:29 +1000 |
commit | 9e206ce5f80172136b503ca23fbd8e53b78eb4b7 (patch) | |
tree | d3942855040ebee306a234140f9f62b5d33177f3 /test/bntest.c | |
parent | d72a00416a0691bfd4920008767221bb4082a2ed (diff) | |
download | openssl-new-9e206ce5f80172136b503ca23fbd8e53b78eb4b7.tar.gz |
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; |