Fix double free bug in error path

Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
Matt Caswell 2016-04-07 14:08:52 +01:00
parent cf430d0593
commit 998f2cb8c4

View file

@ -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) {