mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[core,client] fix channel error check
Do not only check for a channel error but also abort if one is detected.
This commit is contained in:
@@ -460,7 +460,8 @@ UINT freerdp_channels_post_connect(rdpChannels* channels, freerdp* instance)
|
||||
CHANNEL_EVENT_CONNECTED, cnv.pb, (UINT)hostnameLength);
|
||||
}
|
||||
|
||||
if (getChannelError(instance->context) != CHANNEL_RC_OK)
|
||||
error = getChannelError(instance->context);
|
||||
if (error != CHANNEL_RC_OK)
|
||||
goto fail;
|
||||
|
||||
pChannelOpenData = &channels->openDataList[index];
|
||||
|
||||
Reference in New Issue
Block a user