提交 34d69d3b 编写于 作者: R Richard Levitte

SSL_new() may potentially add a certfificate. Therefore, wen

duplicating the certificate that is in the original SSL, remove the
one that SSL_new() provided, if any.
Spotted by: Mike Zeoli <zeoli@roguewave.com>
上级 daea0ff8
......@@ -1718,6 +1718,10 @@ SSL *SSL_dup(SSL *s)
if (s->cert != NULL)
{
if (ret->cert != NULL)
{
ssl_cert_free(ret->cert);
}
ret->cert = ssl_cert_dup(s->cert);
if (ret->cert == NULL)
goto err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册