mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 08:54:38 +09:00
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:
committed by
akallabeth
parent
bb7e4f220b
commit
e452467cd3
@@ -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)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user