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

crypto/bio/bss_bio.c

index 0f9f095..76bd48e 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;
        }