mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09: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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user