From eb0aa95ca4495e3a3e958a449828d032cbf905fc Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Fri, 27 Feb 2026 12:55:57 +0100 Subject: [PATCH] [core,utils] abort channel reload if not allocated --- libfreerdp/core/utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;