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:25:22 +0000 (18:25 +0100)
commit7928ee4d685b727619555bc1ec0aee805f6fc8c4
tree7ba9d28deca810b348757d36b12d0036d363ef68
parentf1429b85c5821e55224e5878da9d0fa420a41f71
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)
crypto/dh/dh_key.c