Initialise ctx to NULL to avoid uninitialized free, noticed by

Steve Kiernan
This commit is contained in:
Mark J. Cox
2006-09-29 08:20:11 +00:00
parent 90a63277e2
commit 055fa1c35c

View File

@@ -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;