Added comment to clarify flow control PDU fields.
authorMehul Dhorda <mehul@hopto.com>
Fri, 7 Nov 2014 22:58:58 +0000 (14:58 -0800)
committerMehul Dhorda <mehul@hopto.com>
Fri, 7 Nov 2014 22:58:58 +0000 (14:58 -0800)
libfreerdp/core/rdp.c

index c59141b..3439a9c 100644 (file)
@@ -917,8 +917,13 @@ int rdp_recv_out_of_sequence_pdu(rdpRdp* rdp, wStream* s)
 
 void rdp_read_flow_control_pdu(wStream* s, UINT16* type)
 {
-       /* Read flow control PDU - documented in FlowPDU section in T.128
-        http://www.itu.int/rec/T-REC-T.128-199802-S/en */
+       /*
+        * Read flow control PDU - documented in FlowPDU section in T.128
+        * http://www.itu.int/rec/T-REC-T.128-199802-S/en
+        * The specification for the PDU has pad8bits listed BEFORE pduTypeFlow.
+        * However, so far pad8bits has always been observed to arrive AFTER pduTypeFlow.
+        * Switched the order of these two fields to match this observation.
+        */
        UINT8 pduType;
        Stream_Read_UINT8(s, pduType);  /* pduTypeFlow */
        *type = pduType;