In BIO_write(), update the write statistics, not the read statistics.
authorRichard Levitte <levitte@openssl.org>
Thu, 25 Dec 2008 22:24:21 +0000 (22:24 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 25 Dec 2008 22:24:21 +0000 (22:24 +0000)
PR: 1803

crypto/bio/bss_bio.c

index 0f9f0955b41187f99a1bd8abcc46480c005139d9..76bd48e7679b22f6492265b84e4b61acacad75fa 100644 (file)
@@ -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;
        }