From 3d1dab44048491957246acac3c38902484e6349c Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 1 Oct 2009 00:07:10 +0000 Subject: [PATCH] PR: 2055 Submitted by: Julia Lawall Approved by: steve@openssl.org Correct BIO_ctrl error handling in s2_srvr.c --- ssl/s2_srvr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/s2_srvr.c b/ssl/s2_srvr.c index c3b4e1d1c..1434e734d 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);