diff options
author | Bodo Möller <bodo@openssl.org> | 1999-08-09 16:33:34 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-08-09 16:33:34 +0000 |
commit | 29159a42d2708cb962b3fa6358f3a02ec5cf46b2 (patch) | |
tree | 37c2f1263c261fe8728cff559953eb2b5a5d3df0 /ssl/ssltest.c | |
parent | 1b1a6e7808abfcc658ce4ff8b344ddcd517cfbd3 (diff) |
BIO_write and BIO_read could, in theory, return -2.
Diffstat (limited to 'ssl/ssltest.c')
-rw-r--r-- | ssl/ssltest.c | 4 |
1 files 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)) { |