From 44390fadc0b0b7e3a5649cd913b0cf0a3beac8f7 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 25 Dec 2008 22:24:17 +0000 Subject: In BIO_write(), update the write statistics, not the read statistics. PR: 1803 --- crypto/bio/bss_bio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto') diff --git a/crypto/bio/bss_bio.c b/crypto/bio/bss_bio.c index 0f9f0955b4..76bd48e767 100644 --- a/crypto/bio/bss_bio.c +++ b/crypto/bio/bss_bio.c @@ -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; } -- cgit v1.2.3