提交 ac0edec1 编写于 作者: M Matt Caswell

Fix a shadowed variable declaration warning

Reviewed-by: NRichard Levitte <levitte@openssl.org>
上级 47263ace
......@@ -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++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册