[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:
akallabeth
2022-12-09 09:43:58 +01:00
committed by David Fort
parent fb6c48bcc3
commit 895c22992c

View File

@@ -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];