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: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=998f2cb8c4d354ef0a5ebf22f1b2ee48cda97664 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 0fe455703f..facb97fb5e 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) {