Fix a shadowed variable declaration warning
authorMatt Caswell <matt@openssl.org>
Thu, 20 Oct 2016 23:00:40 +0000 (00:00 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 28 Oct 2016 08:48:54 +0000 (09:48 +0100)
Reviewed-by: Richard Levitte <levitte@openssl.org>
ssl/bio_ssl.c

index e06c580871ee12207c08b3b2a26948c4daa8a977..af5f913d8fcb8a97a24bedbdd9121427acb040f0 100644 (file)
@@ -88,7 +88,7 @@ static int ssl_free(BIO *a)
     return 1;
 }
 
-static int ssl_read(BIO *b, char *out, size_t outl, size_t *read)
+static int ssl_read(BIO *b, char *out, size_t outl, size_t *readbytes)
 {
     int ret = 1;
     BIO_SSL *sb;
@@ -108,14 +108,14 @@ static int ssl_read(BIO *b, char *out, size_t outl, size_t *read)
 
     ret = SSL_read(ssl, out, outl);
     if (ret > 0)
-        *read = ret;
+        *readbytes = ret;
 
     switch (SSL_get_error(ssl, ret)) {
     case SSL_ERROR_NONE:
         if (ret <= 0)
             break;
         if (sb->renegotiate_count > 0) {
-            sb->byte_count += *read;
+            sb->byte_count += *readbytes;
             if (sb->byte_count > sb->renegotiate_count) {
                 sb->byte_count = 0;
                 sb->num_renegotiates++;