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 18:36:46 +0000 (20:36 +0200)
commit738b8e6bc2331ae9230411d88b8a100614f80457
tree1cdc15c734be70f08c8a848b566c7febebdab31c
parent6481be7346baea1ce0dcfe0a1ff28b0f44e9ce31
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

(cherry picked from commit d6e92c0bd6c36fc68291e79ef5753fd7f0420695)
crypto/dh/dhtest.c