PR: 2136
[openssl.git] / ssl / s2_srvr.c
index c3b4e1d1c7557aa98aa5bbe1532ef84844c678d3..1434e734dd0c0188f5742a3e73de07201fc6c14a 100644 (file)
@@ -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);