From 29159a42d2708cb962b3fa6358f3a02ec5cf46b2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Mon, 9 Aug 1999 16:33:34 +0000 Subject: [PATCH] BIO_write and BIO_read could, in theory, return -2. --- ssl/ssltest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) { -- 2.25.1