Properly check return type of DH_compute_key()
authorPascal Cuoq <cuoq@trust-in-soft.com>
Wed, 6 May 2015 07:55:28 +0000 (09:55 +0200)
committerKurt Roeckx <kurt@roeckx.be>
Wed, 7 Oct 2015 16:54:12 +0000 (18:54 +0200)
commitd6e92c0bd6c36fc68291e79ef5753fd7f0420695
treee848b7e9ca1af8719611d14e83a1fc6704c306ef
parentf92768e6f5259069bd21dbed2b98b3423c1dfca4
Properly check return type of DH_compute_key()

It returns -1 on error, not 0.

Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Rich Salz <rsalz@openssl.org>
MR #1231
test/dhtest.c