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:21 +00:00
parent 667fbc0847
commit 7f065cfdbd

View File

@@ -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;
} }