summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2008-12-25 22:24:17 +0000
committerRichard Levitte <levitte@openssl.org>2008-12-25 22:24:17 +0000
commit44390fadc0b0b7e3a5649cd913b0cf0a3beac8f7 (patch)
tree3c3d8fb52a114106697582c755d9dbb3f89ca413 /crypto
parent974d05a32312527f21a4f8b90e9b828cbad4fc84 (diff)
In BIO_write(), update the write statistics, not the read statistics.
PR: 1803
Diffstat (limited to 'crypto')
-rw-r--r--crypto/bio/bss_bio.c2
1 files changed, 1 insertions, 1 deletions
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;
}