Typo.
[openssl.git] / crypto / bio / bss_conn.c
index bfb2b577138209f76b6ede0397cd7501f9eec469..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;
@@ -590,9 +590,9 @@ static long conn_ctrl(BIO *b, int cmd, long num, void *ptr)
                break;
        case BIO_CTRL_GET_CALLBACK:
                {
-               int (**fptr)(const BIO *bio,int state,int ret);
+               int (**fptr)(const BIO *bio,int state,int xret);
 
-               fptr=(int (**)(const BIO *bio,int state,int ret))ptr;
+               fptr=(int (**)(const BIO *bio,int state,int xret))ptr;
                *fptr=data->info_callback;
                }
                break;