[core,gateway] ignore incomplete rpc header

This commit is contained in:
Armin Novak
2026-02-25 22:52:06 +01:00
parent df4c0841c7
commit 166a569784

View File

@@ -691,8 +691,7 @@ static SSIZE_T rpc_client_default_out_channel_recv(rdpRpc* rpc)
Stream_SetPosition(fragment, 0);
/* Ignore errors, the PDU might not be complete. */
if (!rts_read_common_pdu_header(fragment, &header, TRUE))
return -1;
(void)rts_read_common_pdu_header(fragment, &header, TRUE);
Stream_SetPosition(fragment, pos);
if (header.frag_length > rpc->max_recv_frag)