From: Richard Levitte Date: Thu, 25 Dec 2008 22:24:17 +0000 (+0000) Subject: In BIO_write(), update the write statistics, not the read statistics. X-Git-Tag: OpenSSL_0_9_8k^2~101 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=44390fadc0b0b7e3a5649cd913b0cf0a3beac8f7;p=oweals%2Fopenssl.git In BIO_write(), update the write statistics, not the read statistics. PR: 1803 --- 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; }