Commit 055fa1c3 authored by Mark J. Cox's avatar Mark J. Cox
Browse files

Initialise ctx to NULL to avoid uninitialized free, noticed by

Steve Kiernan
parent 90a63277
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -175,7 +175,7 @@ err:

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;