rdp: notify the Activate state as soon as it happens

Without the patch, we parse more packets and the calling code doesn't have the
opportunity to invoke PostConnect callback (make the connection not work in the proxy)
This commit is contained in:
David Fort
2022-11-30 07:56:39 +01:00
committed by akallabeth
parent a5d9c3b846
commit 9db032f326

View File

@@ -1631,6 +1631,9 @@ static state_run_t rdp_handle_sc_flags(rdpRdp* rdp, wStream* s, UINT32 flag,
{
if (!rdp_client_transition_to_state(rdp, nextState))
status = STATE_RUN_FAILED;
else
status = (rdp_get_state(rdp) == CONNECTION_STATE_ACTIVE) ? STATE_RUN_ACTIVE
: STATE_RUN_SUCCESS;
}
else
{