提交 44390fad 编写于 作者: R Richard Levitte

In BIO_write(), update the write statistics, not the read statistics.

PR: 1803
上级 974d05a3
...@@ -919,6 +919,6 @@ int BIO_nwrite(BIO *bio, char **buf, int num) ...@@ -919,6 +919,6 @@ int BIO_nwrite(BIO *bio, char **buf, int num)
ret = BIO_ctrl(bio, BIO_C_NWRITE, num, buf); ret = BIO_ctrl(bio, BIO_C_NWRITE, num, buf);
if (ret > 0) if (ret > 0)
bio->num_read += ret; bio->num_write += ret;
return ret; return ret;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册