Fix double free bug in error path
Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
parent
cf430d0593
commit
998f2cb8c4
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue