diff --git a/ssl/statem/statem_lib.c b/ssl/statem/statem_lib.c index 635e84a764..406788bbfc 100644 --- a/ssl/statem/statem_lib.c +++ b/ssl/statem/statem_lib.c @@ -92,7 +92,7 @@ int ssl3_do_write(SSL_CONNECTION *s, int type) ret = ssl3_write_bytes(ssl, type, &s->init_buf->data[s->init_off], s->init_num, &written); - if (ret < 0) + if (ret <= 0) return -1; if (type == SSL3_RT_HANDSHAKE) /*