mirror of https://github.com/FreeRDP/FreeRDP
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:
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)))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue