diff options
author | Rich Salz <rsalz@akamai.com> | 2015-06-13 09:29:10 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-06-23 08:12:01 -0400 |
commit | 4b8d8e2ad30e773e2229775ab0b8c35deb5e7c1c (patch) | |
tree | 818c74b038fe34ee862bca1aaf837def779a9874 /apps/ocsp.c | |
parent | 2d540402aac7a05af9c99b58864d53c0201a0b42 (diff) | |
download | openssl-4b8d8e2ad30e773e2229775ab0b8c35deb5e7c1c.tar.gz |
RT3682: Avoid double-free on OCSP parse error
Found by Kurt Cancemi.
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'apps/ocsp.c')
-rw-r--r-- | apps/ocsp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/ocsp.c b/apps/ocsp.c index 5d3e646f81..b6397b8f77 100644 --- a/apps/ocsp.c +++ b/apps/ocsp.c @@ -275,6 +275,7 @@ int ocsp_main(int argc, char **argv) OPENSSL_free(thost); OPENSSL_free(tport); OPENSSL_free(tpath); + thost = tport = tpath = NULL; if (!OCSP_parse_url(opt_arg(), &host, &port, &path, &use_ssl)) { BIO_printf(bio_err, "%s Error parsing URL\n", prog); goto end; |