Menu

#139 Swap parameter in tlm_reply

1.3.2.0
closed
None
2017-02-08
2017-02-02
No

The function tlm_reply calls trdp_mdReply with swaped parameters.

The parameter userStatus and timeout (set to 0) are swapped.

Original code:

return trdp_mdReply(TRDP_MSG_MP,
                        appHandle,
                        (UINT8 *)pSessionId,
                        comId,
                        (INT32)userStatus,
                        0,
                        pSendParam,
                        pData,
                        dataSize);

Code suggestion:

return trdp_mdReply(TRDP_MSG_MP,
                        appHandle,
                        (UINT8 *)pSessionId,
                        comId,
                        0,
                        (INT32)userStatus,
                        pSendParam,
                        pData,
                        dataSize);

Discussion

  • Bernd Löhr

    Bernd Löhr - 2017-02-08
    • status: open --> accepted
    • assigned_to: Bernd Löhr
     
  • Bernd Löhr

    Bernd Löhr - 2017-02-08
    • Status: accepted --> pending
     
  • Bernd Löhr

    Bernd Löhr - 2017-03-02
    • Status: pending --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB