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.
This commit is contained in:
Steve Pronovost
2021-10-16 12:04:33 -07:00
committed by akallabeth
parent bb7e4f220b
commit e452467cd3

View File

@@ -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)))
{