From 9de3eaa037793934a5bac4c817a24a6fc9325aae Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Mon, 2 Mar 2026 18:28:52 +0100 Subject: [PATCH] [server,proxy] add return checks --- server/proxy/channels/pf_channel_rdpdr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/proxy/channels/pf_channel_rdpdr.c b/server/proxy/channels/pf_channel_rdpdr.c index 2aeeb92aa..2aa92b771 100644 --- a/server/proxy/channels/pf_channel_rdpdr.c +++ b/server/proxy/channels/pf_channel_rdpdr.c @@ -1663,7 +1663,8 @@ static BOOL filter_smartcard_device_list_announce(pf_channel_server_context* rdp return TRUE; if (DeviceType == RDPDR_DTYP_SMARTCARD) { - ArrayList_Append(rdpdr->blockedDevices, (void*)(size_t)DeviceId); + if (!ArrayList_Append(rdpdr->blockedDevices, (void*)(size_t)DeviceId)) + return FALSE; if (count == 1) return TRUE;