aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-08-09 16:33:34 +0000
committerBodo Möller <bodo@openssl.org>1999-08-09 16:33:34 +0000
commit29159a42d2708cb962b3fa6358f3a02ec5cf46b2 (patch)
tree37c2f1263c261fe8728cff559953eb2b5a5d3df0
parent1b1a6e7808abfcc658ce4ff8b344ddcd517cfbd3 (diff)
downloadopenssl-29159a42d2708cb962b3fa6358f3a02ec5cf46b2.zip
openssl-29159a42d2708cb962b3fa6358f3a02ec5cf46b2.tar.gz
openssl-29159a42d2708cb962b3fa6358f3a02ec5cf46b2.tar.bz2
BIO_write and BIO_read could, in theory, return -2.
-rw-r--r--ssl/ssltest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/ssltest.c b/ssl/ssltest.c
index 23664a6..f9c9697 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))
{