From: Matt Caswell Date: Thu, 7 Apr 2016 13:08:52 +0000 (+0100) Subject: Fix double free bug in error path X-Git-Tag: OpenSSL_1_1_0-pre5~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=998f2cb8c4d354ef0a5ebf22f1b2ee48cda97664;p=thirdparty%2Fopenssl.git Fix double free bug in error path Reviewed-by: Richard Levitte --- diff --git a/crypto/dsa/dsa_lib.c b/crypto/dsa/dsa_lib.c index 0fe455703f9..facb97fb5eb 100644 --- a/crypto/dsa/dsa_lib.c +++ b/crypto/dsa/dsa_lib.c @@ -271,6 +271,7 @@ DH *DSA_dup_DH(const DSA *r) q = BN_dup(r->q); if (p == NULL || g == NULL || q == NULL || !DH_set0_pqg(ret, p, q, g)) goto err; + p = g = q = NULL; } if (r->pub_key != NULL) {