Fix error handling in compute_key, BN_CTX_get can return NULL
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 22 Dec 2016 12:51:27 +0000 (13:51 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 24 Jan 2017 17:26:21 +0000 (18:26 +0100)
commit75249be2ce76a75953869f9d249ef0ec8f701d94
tree9daf8309daf9547e70389467a2c19591eb7e38d3
parent722d42e1ea710ba036563a68dc7c4e987bf4991b
Fix error handling in compute_key, BN_CTX_get can return NULL

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2132)
(cherry picked from commit 7928ee4d685b727619555bc1ec0aee805f6fc8c4)
crypto/dh/dh_key.c