projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6481be7
)
Properly check return type of DH_compute_key()
author
Pascal Cuoq
<cuoq@trust-in-soft.com>
Wed, 6 May 2015 07:55:28 +0000
(09:55 +0200)
committer
Kurt Roeckx
<kurt@roeckx.be>
Wed, 7 Oct 2015 18:36:46 +0000
(20:36 +0200)
It returns -1 on error, not 0.
Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Rich Salz <rsalz@openssl.org>
MR #1231
(cherry picked from commit
d6e92c0bd6c36fc68291e79ef5753fd7f0420695
)
crypto/dh/dhtest.c
patch
|
blob
|
history
diff --git
a/crypto/dh/dhtest.c
b/crypto/dh/dhtest.c
index c9dd76bc75e17582c53a78786be7802dd17f36a0..6fe8ff4c0c49661cd8a4ace09f2a10eb91df4816 100644
(file)
--- a/
crypto/dh/dhtest.c
+++ b/
crypto/dh/dhtest.c
@@
-533,9
+533,9
@@
static int run_rfc5114_tests(void)
* Work out shared secrets using both sides and compare with expected
* values.
*/
- if (
!DH_compute_key(Z1, dhB->pub_key, dhA)
)
+ if (
DH_compute_key(Z1, dhB->pub_key, dhA) == -1
)
goto bad_err;
- if (
!DH_compute_key(Z2, dhA->pub_key, dhB)
)
+ if (
DH_compute_key(Z2, dhA->pub_key, dhB) == -1
)
goto bad_err;
if (memcmp(Z1, td->Z, td->Z_len))