RT3682: Avoid double-free on OCSP parse error
Found by Kurt Cancemi. Reviewed-by: Matt Caswell <matt@openssl.org>
This commit is contained in:
parent
2d540402aa
commit
4b8d8e2ad3
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue