Fix a missing NULL check in dsa_builtin_paramgen
authorMatt Caswell <matt@openssl.org>
Wed, 14 Sep 2016 12:27:59 +0000 (13:27 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 21 Sep 2016 12:32:30 +0000 (13:32 +0100)
commit1ff7425d6130380bb00d3e64739633a4b21b11a3
tree43a29138968c0f20593368ca5ea2910941e4fab7
parentf3ff481f318b10a223d6157bde9645e1797487c5
Fix a missing NULL check in dsa_builtin_paramgen

We should check the last BN_CTX_get() call to ensure that it isn't NULL
before we try and use any of the allocated BIGNUMs.

Issue reported by Shi Lei.

Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/dsa/dsa_gen.c