Fix a typo in bio_read_intern
authorMatt Caswell <matt@openssl.org>
Thu, 1 Dec 2016 13:24:09 +0000 (13:24 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 2 Dec 2016 09:15:19 +0000 (09:15 +0000)
Reviewed-by: Stephen Henson <steve@openssl.org>
crypto/bio/bio_lib.c

index 4c2af7d7462890486ea82606aa84cca24e8ea8db..67acac3d28a27591cb0a11f26988ede145627663 100644 (file)
@@ -269,7 +269,7 @@ static int bio_read_intern(BIO *b, void *data, size_t dlen, size_t *readbytes)
     ret = b->method->bread(b, data, dlen, readbytes);
 
     if (ret > 0)
-        b->num_read += (uint64_t)*read;
+        b->num_read += (uint64_t)*readbytes;
 
     if (b->callback != NULL || b->callback_ex != NULL)
         ret = (int)bio_call_callback(b, BIO_CB_READ | BIO_CB_RETURN, data,