mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
gateway: Do not fail if unprocessed padding bytes are detected
Sometimes the RPC PDUs have unprocessed data (padding bytes) at their end. In that case do not fail but just log a warning with the correct amount of remaining bytes.
This commit is contained in:
committed by
akallabeth
parent
28a2bf0848
commit
2e5d4fbe06
@@ -348,8 +348,8 @@ static int rpc_client_recv_pdu(rdpRpc* rpc, RPC_PDU* pdu)
|
||||
const size_t after = Stream_GetRemainingLength(pdu->s);
|
||||
if (after > 0)
|
||||
{
|
||||
WLog_ERR(TAG, "incompletely parsed RPC PDU, %" PRIuz " byte remain", before);
|
||||
return -1;
|
||||
/* Just log so we do not fail if we have some unprocessed padding bytes */
|
||||
WLog_WARN(TAG, "Incompletely parsed RPC PDU (%" PRIuz " bytes remain)", after);
|
||||
}
|
||||
|
||||
return rc;
|
||||
|
||||
Reference in New Issue
Block a user