Commit 44390fad authored by Richard Levitte's avatar Richard Levitte
Browse files

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

PR: 1803
parent 974d05a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}