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

PR: 1803
This commit is contained in:
Richard Levitte 2008-12-25 22:24:17 +00:00
parent 974d05a323
commit 44390fadc0

View File

@ -919,6 +919,6 @@ int BIO_nwrite(BIO *bio, char **buf, int num)
ret = BIO_ctrl(bio, BIO_C_NWRITE, num, buf);
if (ret > 0)
bio->num_read += ret;
bio->num_write += ret;
return ret;
}