summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-10-21 00:00:40 +0100
committerMatt Caswell <matt@openssl.org>2016-10-28 09:48:54 +0100
commitac0edec108804c383e1f7c48dd2fe72deecf6f9c (patch)
treeb6d8bcc83043dbc50bb26e727f49d9d2274ddbc2 /ssl
parent47263ace13c47a3e2c4c9c4439884cf1ff8e6866 (diff)
Fix a shadowed variable declaration warning
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'ssl')
-rw-r--r--ssl/bio_ssl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ssl/bio_ssl.c b/ssl/bio_ssl.c
index e06c580871..af5f913d8f 100644
--- a/ssl/bio_ssl.c
+++ b/ssl/bio_ssl.c
@@ -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++;