diff options
author | Bodo Möller <bodo@openssl.org> | 1999-06-25 13:41:35 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-06-25 13:41:35 +0000 |
commit | 227cd06ffea642eb155449888a46159481afe0d0 (patch) | |
tree | aee5acc0320a02599e08fec63a124c82624485d2 /crypto/dsa/dsa_sign.c | |
parent | 9b67b4b3caf071f490b95128f5dd44d9ce52032d (diff) |
Avoid some memory holes, one of which was pointed out by
"Chad C. Mulligan" <mulligan@antipope.org>.
Diffstat (limited to 'crypto/dsa/dsa_sign.c')
-rw-r--r-- | crypto/dsa/dsa_sign.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/dsa/dsa_sign.c b/crypto/dsa/dsa_sign.c index 709d93ee73..774c161964 100644 --- a/crypto/dsa/dsa_sign.c +++ b/crypto/dsa/dsa_sign.c @@ -125,6 +125,8 @@ err: if (ctx != NULL) BN_CTX_free(ctx); BN_clear_free(&m); BN_clear_free(&xr); + if (kinv != NULL) /* dsa->kinv is NULL now if we used it */ + BN_clear_free(kinv); return(ret); } |