Initialise ctx to NULL to avoid uninitialized free, noticed by
Steve Kiernan
This commit is contained in:
parent
3c5406b35c
commit
c2cccfc585
@ -173,7 +173,7 @@ err:
|
|||||||
|
|
||||||
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…
x
Reference in New Issue
Block a user