summaryrefslogtreecommitdiffstats
path: root/ssl/bio_ssl.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-10-19 17:37:22 +0100
committerMatt Caswell <matt@openssl.org>2016-11-04 12:09:46 +0000
commit699ae85915f83f91bf5d5af45dd4888217005461 (patch)
tree6244c82812236765d9833c016e06ca7e2032a226 /ssl/bio_ssl.c
parent2688e7a0beb0f5e76a98749f25b978ddfb40ac7f (diff)
Remove a stray TODO that has already been fixed
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/bio_ssl.c')
-rw-r--r--ssl/bio_ssl.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/ssl/bio_ssl.c b/ssl/bio_ssl.c
index e2769e1d6a..596df240d3 100644
--- a/ssl/bio_ssl.c
+++ b/ssl/bio_ssl.c
@@ -103,12 +103,7 @@ static int ssl_read(BIO *b, char *buf, size_t size, size_t *readbytes)
BIO_clear_retry_flags(b);
- if (size > INT_MAX)
- size = INT_MAX;
-
- ret = SSL_read(ssl, buf, size);
- if (ret > 0)
- *readbytes = ret;
+ ret = SSL_read_ex(ssl, buf, size, readbytes);
switch (SSL_get_error(ssl, ret)) {
case SSL_ERROR_NONE: