aboutsummaryrefslogtreecommitdiffstats
path: root/ssl/s2_srvr.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-10-01 00:06:14 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-10-01 00:06:14 +0000
commitd4778ae47ea6f55f6b153e858ebc526fc05ef5a8 (patch)
tree434f35bd8d320c21a43b621e1f276c70586b9fcb /ssl/s2_srvr.c
parentff613640e252da3a2b95be6af90b19400f3a7109 (diff)
downloadopenssl-d4778ae47ea6f55f6b153e858ebc526fc05ef5a8.tar.gz
PR: 2055
Submitted by: Julia Lawall <julia@diku.dk> Approved by: steve@openssl.org Correct BIO_ctrl error handling in s2_srvr.c
Diffstat (limited to 'ssl/s2_srvr.c')
-rw-r--r--ssl/s2_srvr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/s2_srvr.c b/ssl/s2_srvr.c
index c3b4e1d1c7..1434e734dd 100644
--- a/ssl/s2_srvr.c
+++ b/ssl/s2_srvr.c
@@ -267,7 +267,7 @@ int ssl2_accept(SSL *s)
case SSL2_ST_SEND_SERVER_VERIFY_C:
/* get the number of bytes to write */
num1=BIO_ctrl(s->wbio,BIO_CTRL_INFO,0,NULL);
- if (num1 != 0)
+ if (num1 > 0)
{
s->rwstate=SSL_WRITING;
num1=BIO_flush(s->wbio);