proxy: fix treatment of client channels

Iteration on channels was done with the wrong counter leading to incorrect behaviour.
This commit is contained in:
David Fort 2023-05-08 23:01:54 +02:00 committed by akallabeth
parent 7212621eae
commit 7b84f2f740

View File

@ -394,7 +394,7 @@ static BOOL pf_client_load_channels(freerdp* instance)
{
CHANNEL_DEF* channels = (CHANNEL_DEF*)freerdp_settings_get_pointer_array_writable(
settings, FreeRDP_ChannelDefArray, 0);
size_t x, size = freerdp_settings_get_uint32(settings, FreeRDP_ChannelDefArraySize);
size_t x, size = freerdp_settings_get_uint32(settings, FreeRDP_ChannelCount);
UINT32 id = MCS_GLOBAL_CHANNEL_ID + 1;
WINPR_ASSERT(channels || (size == 0));