From: Dr. Stephen Henson Date: Thu, 1 Oct 2009 00:07:21 +0000 (+0000) Subject: PR: 2055 X-Git-Tag: OpenSSL_0_9_8m-beta1~96 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fb5a4bbaa791a25903d801899a8a8570826badf3;p=oweals%2Fopenssl.git PR: 2055 Submitted by: Julia Lawall Approved by: steve@openssl.org Correct BIO_ctrl error handling in s2_srvr.c --- diff --git a/ssl/s2_srvr.c b/ssl/s2_srvr.c index 50d55e6bf1..01d62fad11 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);