In BIO_write(), update the write statistics, not the read statistics.
[openssl.git] / 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;
        }