You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
migrated from Bugzilla #444792
status RESOLVED severity major in component MQTT-Embedded-C for 1.1
Reported in version v0.5 on platform PC
Assigned to: Ian Craggs
On 2014-09-23 02:55:55 -0400, Kamal Baker wrote:
The variable 'c' which is used to read the header bytes from the socket is used before initilization in MQTTPacket_decode. This variable caused the client to believe that there were data to read. The OS used is Freescale MQX with the RTCS stack. The fix is to set the variable to '0' before read in the do/while loop
Regards
Kamal Baker
On 2014-09-23 06:14:15 -0400, Ian Craggs wrote:
The first use of the variable c is to be written to by the function getcharfn, which is why it is not initialized.
The function getcharfn should return 0 or -1 if if fails to read the data, 1 if successful. This is the test that determines whether the network read was successful or not.
We can initialize the variable c, but if getcharfn is behaving as intended, then it will make no difference. Maybe the socket read call on this platform is returning a different value?
On 2015-01-13 05:53:19 -0500, Ian Craggs wrote:
The return code from getcharfn, 0 or -1, determines the success of the read call, not the value in c.
The text was updated successfully, but these errors were encountered:
migrated from Bugzilla #444792
status RESOLVED severity major in component MQTT-Embedded-C for 1.1
Reported in version v0.5 on platform PC
Assigned to: Ian Craggs
On 2014-09-23 02:55:55 -0400, Kamal Baker wrote:
On 2014-09-23 06:14:15 -0400, Ian Craggs wrote:
On 2015-01-13 05:53:19 -0500, Ian Craggs wrote:
The text was updated successfully, but these errors were encountered: