diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-04-20 04:45:10 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-04-20 04:45:10 +0000 |
commit | 9895c836e266ad77dcd221e04d62b9dddbe419b8 (patch) | |
tree | 1f45b5467c5e0b1b64dd691a2a5c4d1179809562 /lib | |
parent | f2f76078efa338447488b95a75288a10d99f1185 (diff) |
reset imprint to NULL to avoid double free. from mancha1 at zoho
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libssl/src/crypto/ts/ts_rsp_verify.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libssl/src/crypto/ts/ts_rsp_verify.c b/lib/libssl/src/crypto/ts/ts_rsp_verify.c index d51500b5d44..7484b10d608 100644 --- a/lib/libssl/src/crypto/ts/ts_rsp_verify.c +++ b/lib/libssl/src/crypto/ts/ts_rsp_verify.c @@ -626,6 +626,7 @@ static int TS_compute_imprint(BIO *data, TS_TST_INFO *tst_info, err: X509_ALGOR_free(*md_alg); free(*imprint); + *imprint = NULL; *imprint_len = 0; return 0; } |