[core,utils] abort channel reload if not allocated

This commit is contained in:
Armin Novak
2026-02-27 12:55:57 +01:00
parent 9a9c74b69e
commit eb0aa95ca4

View File

@@ -505,7 +505,9 @@ BOOL utils_reload_channels(rdpContext* context)
}
context->channels = freerdp_channels_new(context->instance);
WINPR_ASSERT(context->channels);
if (!context->channels)
return FALSE;
freerdp_channels_register_instance(context->channels, context->instance);
BOOL rc = TRUE;