diff --git a/libfreerdp/core/utils.c b/libfreerdp/core/utils.c index 6e2c98e2d..a484f4ac5 100644 --- a/libfreerdp/core/utils.c +++ b/libfreerdp/core/utils.c @@ -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;