[core] only move state on demand active

rdp_client_connect_demand_active returns STATE_RUN_ACTIVE if we received
it, some other return otherwise
This commit is contained in:
akallabeth 2023-11-21 12:53:15 +01:00 committed by David Fort
parent 0ee61dcb62
commit 3ca26384ee
2 changed files with 2 additions and 4 deletions

View File

@ -1268,12 +1268,10 @@ state_run_t rdp_client_connect_demand_active(rdpRdp* rdp, wStream* s)
case PDU_TYPE_DEMAND_ACTIVE:
if (!rdp_recv_demand_active(rdp, s, pduSource, length))
return STATE_RUN_FAILED;
break;
return STATE_RUN_ACTIVE;
default:
return rdp_recv_out_of_sequence_pdu(rdp, s, pduType, length);
}
return STATE_RUN_SUCCESS;
}
state_run_t rdp_client_connect_finalize(rdpRdp* rdp)

View File

@ -2041,7 +2041,7 @@ static state_run_t rdp_recv_callback_int(rdpTransport* transport, wStream* s, vo
rdp_get_state_string(rdp),
state_run_result_string(status, buffer, ARRAYSIZE(buffer)));
}
else if (status != STATE_RUN_REDIRECT)
else if (status == STATE_RUN_ACTIVE)
{
if (!rdp_client_transition_to_state(
rdp, CONNECTION_STATE_CAPABILITIES_EXCHANGE_CONFIRM_ACTIVE))