libfreerdp-core: disconnect client when accept fails

This commit is contained in:
Marc-André Moreau 2013-12-08 14:43:11 -05:00
parent b3ea580616
commit 6dfdc286ec

View File

@ -368,7 +368,8 @@ BOOL rdp_server_accept_client_font_list_pdu(rdpRdp* rdp, wStream* s)
if (!rdp_send_server_font_map_pdu(rdp))
return FALSE;
rdp_server_transition_to_state(rdp, CONNECTION_STATE_ACTIVE);
if (rdp_server_transition_to_state(rdp, CONNECTION_STATE_ACTIVE) < 0)
return FALSE;
return TRUE;
}