Skip to content

Commit

Permalink
Fix for bug 486548, #4
Browse files Browse the repository at this point in the history
Bug: 486548
  • Loading branch information
Ian Craggs committed May 31, 2016
1 parent 2405731 commit 2eeb553
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MQTTAsync.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
* Ian Craggs - fix for bug 484363 - segfault in getReadySocket
* Ian Craggs - automatic reconnect and offline buffering (send while disconnected)
* Ian Craggs - fix for bug 472250
* Ian Craggs - fix for bug 486548
*******************************************************************************/

/**
Expand Down Expand Up @@ -1460,6 +1461,7 @@ void MQTTAsync_removeResponsesAndCommands(MQTTAsyncs* m)

data.token = command->command.token;
data.code = MQTTASYNC_OPERATION_INCOMPLETE; /* interrupted return code */
data.message = NULL;

Log(TRACE_MIN, -1, "Calling %s failure for client %s",
MQTTPacket_name(command->command.type), m->c->clientID);
Expand Down Expand Up @@ -1491,6 +1493,7 @@ void MQTTAsync_removeResponsesAndCommands(MQTTAsyncs* m)

data.token = command->command.token;
data.code = MQTTASYNC_OPERATION_INCOMPLETE; /* interrupted return code */
data.message = NULL;

Log(TRACE_MIN, -1, "Calling %s failure for client %s",
MQTTPacket_name(command->command.type), m->c->clientID);
Expand Down

0 comments on commit 2eeb553

Please sign in to comment.