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
@ -173,7 +173,7 @@ static int generate_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;
|
||||
BIGNUM *tmp;
|
||||
int ret= -1;
|
||||
|
Loading…
Reference in New Issue
Block a user