mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
rdpei/server: Fix incorrect PDU length read
The PDU length is a 32-bit unsigned integer and not a 16-bit one.
This commit is contained in:
parent
6a4bbfc047
commit
a16cb1da63
@ -718,7 +718,7 @@ UINT rdpei_server_handle_messages(RdpeiServerContext* context)
|
||||
|
||||
/* header case */
|
||||
Stream_Read_UINT16(s, priv->currentMsgType);
|
||||
Stream_Read_UINT16(s, pduLen);
|
||||
Stream_Read_UINT32(s, pduLen);
|
||||
|
||||
if (pduLen < RDPINPUT_HEADER_LENGTH)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user