Import from upstream OpenSSL 0.9.8 branch:
Fix uninitialized free of ctx in compute_key() when the OPENSSL_DH_MAX_MODULUS_BITS check is triggered. This fixes the same issue as FreeBSD-SA-06:23.openssl v1.1.
This commit is contained in:
parent
ed5d4f9a94
commit
4d227dd736
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor-crypto/openssl/dist/; revision=162916
@ -173,7 +173,7 @@ static int generate_key(DH *dh)
|
|||||||
|
|
||||||
static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
|
static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
|
||||||
{
|
{
|
||||||
BN_CTX *ctx;
|
BN_CTX *ctx=NULL;
|
||||||
BN_MONT_CTX *mont=NULL;
|
BN_MONT_CTX *mont=NULL;
|
||||||
BIGNUM *tmp;
|
BIGNUM *tmp;
|
||||||
int ret= -1;
|
int ret= -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user