diff options
author | Matt Caswell <matt@openssl.org> | 2016-04-07 14:08:52 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-04-09 10:10:55 +0100 |
commit | 998f2cb8c4d354ef0a5ebf22f1b2ee48cda97664 (patch) | |
tree | add2ac3e0668d299b40143d766349d73e758d6ed /crypto | |
parent | cf430d059304200e2eac8c02f6ebfbfff3bbdf16 (diff) |
Fix double free bug in error path
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/dsa/dsa_lib.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |