From e452467cd3fef7d4a5d55fe73ae3b2244ec3eb53 Mon Sep 17 00:00:00 2001 From: Steve Pronovost Date: Sat, 16 Oct 2021 12:04:33 -0700 Subject: [PATCH] Fix protocol violation in Display Control Virtual Channel Extension Length field of DISPLAYCONTROL_HEADER must include the size of the header itself. See MS-RDPEDISP 2.2.1.1 DISPLAYCONTROL_HEADER. --- channels/disp/server/disp_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/disp/server/disp_main.c b/channels/disp/server/disp_main.c index 0c6f4afae..a681e27e7 100644 --- a/channels/disp/server/disp_main.c +++ b/channels/disp/server/disp_main.c @@ -58,7 +58,7 @@ static wStream* disp_server_single_packet_new(UINT32 type, UINT32 length) } header.type = type; - header.length = length; + header.length = DISPLAY_CONTROL_HEADER_LENGTH + length; if ((error = disp_write_header(s, &header))) {