summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-04-20 04:45:10 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-04-20 04:45:10 +0000
commitfbf6c8e40e84f402a9ef073e345ae04d5d3b67b9 (patch)
tree4884415a316338d9bfdb297cead39844843ca535
parent26a8164c7b46659b5df06ffc416be085ee66a348 (diff)
reset imprint to NULL to avoid double free. from mancha1 at zoho
-rw-r--r--lib/libcrypto/ts/ts_rsp_verify.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libcrypto/ts/ts_rsp_verify.c b/lib/libcrypto/ts/ts_rsp_verify.c
index d51500b5d44..7484b10d608 100644
--- a/lib/libcrypto/ts/ts_rsp_verify.c
+++ b/lib/libcrypto/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;
}