summaryrefslogtreecommitdiffstats
path: root/ssl/bio_ssl.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-10-25 15:29:35 +0100
committerMatt Caswell <matt@openssl.org>2016-11-04 12:09:46 +0000
commitbe2ef0e2e3842114054d26c3429016dc894a1359 (patch)
treee18acd2a3e71c4f89a9753fb033c1e5e8355bf4e /ssl/bio_ssl.c
parent2b7363ecf168f94e5d982cd49182aa923b92d3e4 (diff)
Test the size_t constant time functions
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/bio_ssl.c')
-rw-r--r--ssl/bio_ssl.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ssl/bio_ssl.c b/ssl/bio_ssl.c
index 596df240d3..e48b90fcea 100644
--- a/ssl/bio_ssl.c
+++ b/ssl/bio_ssl.c
@@ -107,8 +107,6 @@ static int ssl_read(BIO *b, char *buf, size_t size, size_t *readbytes)
switch (SSL_get_error(ssl, ret)) {
case SSL_ERROR_NONE:
- if (*readbytes == 0)
- break;
if (sb->renegotiate_count > 0) {
sb->byte_count += *readbytes;
if (sb->byte_count > sb->renegotiate_count) {
@@ -178,8 +176,6 @@ static int ssl_write(BIO *b, const char *buf, size_t size, size_t *written)
switch (SSL_get_error(ssl, ret)) {
case SSL_ERROR_NONE:
- if (*written == 0)
- break;
if (bs->renegotiate_count > 0) {
bs->byte_count += *written;
if (bs->byte_count > bs->renegotiate_count) {