diff --git a/rdp.c b/rdp.c index 4369b7b..53675c9 100644 --- a/rdp.c +++ b/rdp.c @@ -1030,7 +1030,7 @@ process_system_pointer_pdu(STREAM s) { uint16 system_pointer_type; - in_uint16(s, system_pointer_type); + in_uint16_le(s, system_pointer_type); switch (system_pointer_type) { case RDP_NULL_POINTER: @@ -1238,10 +1238,10 @@ process_data_pdu(STREAM s, uint32 * ext_disc_reason) struct stream *ns = &(g_mppc_dict.ns); in_uint8s(s, 6); /* shareid, pad, streamid */ - in_uint16(s, len); + in_uint16_le(s, len); in_uint8(s, data_pdu_type); in_uint8(s, ctype); - in_uint16(s, clen); + in_uint16_le(s, clen); clen -= 18; if (ctype & RDP_MPPC_COMPRESSED)