fix if statement: call conn_state() if the BIO is not in the BIO_CONN_S_OK state
This commit is contained in:
parent
c7474d077b
commit
d5fd72fd0d
@ -469,7 +469,7 @@ static long conn_ctrl(BIO *b, int cmd, long num, void *ptr)
|
|||||||
break;
|
break;
|
||||||
case BIO_C_DO_STATE_MACHINE:
|
case BIO_C_DO_STATE_MACHINE:
|
||||||
/* use this one to start the connection */
|
/* 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);
|
ret=(long)conn_state(b,data);
|
||||||
else
|
else
|
||||||
ret=1;
|
ret=1;
|
||||||
|
Loading…
Reference in New Issue
Block a user