提交 4b8d8e2a 编写于 作者: R Rich Salz 提交者: Rich Salz

RT3682: Avoid double-free on OCSP parse error

Found by Kurt Cancemi.
Reviewed-by: NMatt Caswell <matt@openssl.org>
上级 2d540402
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册