]> granicus.if.org Git - openssl/commitdiff
fix if statement: call conn_state() if the BIO is not in the BIO_CONN_S_OK state
authorNils Larsch <nils@openssl.org>
Thu, 2 Feb 2006 22:16:45 +0000 (22:16 +0000)
committerNils Larsch <nils@openssl.org>
Thu, 2 Feb 2006 22:16:45 +0000 (22:16 +0000)
crypto/bio/bss_conn.c

index 0c41b1b5a95b0c1f902ebc8542c82a21611b7a61..c14727855b259b30b1ed679948337ba2f2e95a1f 100644 (file)
@@ -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;