From: Bodo Möller Date: Mon, 9 Aug 1999 16:33:34 +0000 (+0000) Subject: BIO_write and BIO_read could, in theory, return -2. X-Git-Tag: OpenSSL_0_9_5beta1~588 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=29159a42d2708cb962b3fa6358f3a02ec5cf46b2;ds=sidebyside BIO_write and BIO_read could, in theory, return -2. --- diff --git a/ssl/ssltest.c b/ssl/ssltest.c index 23664a69d1..f9c96975d4 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -519,7 +519,7 @@ int doit_biopair(SSL *s_ssl, SSL *c_ssl, long count) else i = (int)cw_num; r = BIO_write(c_ssl_bio, cbuf, i); - if (r == -1) + if (r < 0) { if (!BIO_should_retry(c_ssl_bio)) { @@ -592,7 +592,7 @@ int doit_biopair(SSL *s_ssl, SSL *c_ssl, long count) else i = (int)sw_num; r = BIO_write(s_ssl_bio, sbuf, i); - if (r == -1) + if (r < 0) { if (!BIO_should_retry(s_ssl_bio)) {