提交 d4778ae4 编写于 作者: D Dr. Stephen Henson

PR: 2055

Submitted by: Julia Lawall <julia@diku.dk>
Approved by: steve@openssl.org

Correct BIO_ctrl error handling in s2_srvr.c
上级 ff613640
...@@ -267,7 +267,7 @@ int ssl2_accept(SSL *s) ...@@ -267,7 +267,7 @@ int ssl2_accept(SSL *s)
case SSL2_ST_SEND_SERVER_VERIFY_C: case SSL2_ST_SEND_SERVER_VERIFY_C:
/* get the number of bytes to write */ /* get the number of bytes to write */
num1=BIO_ctrl(s->wbio,BIO_CTRL_INFO,0,NULL); num1=BIO_ctrl(s->wbio,BIO_CTRL_INFO,0,NULL);
if (num1 != 0) if (num1 > 0)
{ {
s->rwstate=SSL_WRITING; s->rwstate=SSL_WRITING;
num1=BIO_flush(s->wbio); num1=BIO_flush(s->wbio);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册