projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b1a6e7
)
BIO_write and BIO_read could, in theory, return -2.
author
Bodo Möller
<bodo@openssl.org>
Mon, 9 Aug 1999 16:33:34 +0000
(16:33 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Mon, 9 Aug 1999 16:33:34 +0000
(16:33 +0000)
ssl/ssltest.c
patch
|
blob
|
history
diff --git
a/ssl/ssltest.c
b/ssl/ssltest.c
index 23664a69d105ac60fea340aae78727d8dc8a3395..f9c96975d4f3586a546cef03b8af39cc3174efce 100644
(file)
--- 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))
{