提交 29159a42 编写于 作者: B Bodo Möller

BIO_write and BIO_read could, in theory, return -2.

上级 1b1a6e78
......@@ -519,7 +519,7 @@ int doit_biopair(SSL *s_ssl, SSL *c_ssl, long count)
else
i = (int)cw_num;
r = BIO_write(c_ssl_bio, cbuf, i);
if (r == -1)
if (r < 0)
{
if (!BIO_should_retry(c_ssl_bio))
{
......@@ -592,7 +592,7 @@ int doit_biopair(SSL *s_ssl, SSL *c_ssl, long count)
else
i = (int)sw_num;
r = BIO_write(s_ssl_bio, sbuf, i);
if (r == -1)
if (r < 0)
{
if (!BIO_should_retry(s_ssl_bio))
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册