From: Nils Larsch Date: Thu, 2 Feb 2006 22:11:02 +0000 (+0000) Subject: fix if statement: call conn_state() if the BIO is not in the BIO_CONN_S_OK state X-Git-Tag: OpenSSL_0_9_8k^2~1576 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d5fd72fd0d49fb28959cbfb6a9c90bec4a2f1b7a;p=oweals%2Fopenssl.git fix if statement: call conn_state() if the BIO is not in the BIO_CONN_S_OK state --- diff --git a/crypto/bio/bss_conn.c b/crypto/bio/bss_conn.c index 0c41b1b5a9..c14727855b 100644 --- a/crypto/bio/bss_conn.c +++ b/crypto/bio/bss_conn.c @@ -469,7 +469,7 @@ static long conn_ctrl(BIO *b, int cmd, long num, void *ptr) break; case BIO_C_DO_STATE_MACHINE: /* use this one to start the connection */ - if (!(data->state != BIO_CONN_S_OK)) + if (data->state != BIO_CONN_S_OK) ret=(long)conn_state(b,data); else ret=1;