From 2eeb553754f2c4031cf869091819f82b656230bb Mon Sep 17 00:00:00 2001 From: Ian Craggs Date: Tue, 31 May 2016 17:00:37 +0100 Subject: [PATCH] Fix for bug 486548, https://github.com/eclipse/paho.mqtt.c/issues/4 Bug: 486548 --- src/MQTTAsync.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/MQTTAsync.c b/src/MQTTAsync.c index 6600f5cbf..f8b656fb4 100755 --- a/src/MQTTAsync.c +++ b/src/MQTTAsync.c @@ -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 *******************************************************************************/ /** @@ -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); @@ -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);