From 6bc86f8b874c493d7dd84b1b1c1075692ddd6a37 Mon Sep 17 00:00:00 2001 From: wuhaogs Date: Sat, 16 Mar 2024 19:01:56 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Afixed=20crash=20issues=20when=20the?= =?UTF-8?q?=20illegal=20topic=20is=20received?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mqtt/MQTTDeserializePublish.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mqtt/MQTTDeserializePublish.c b/mqtt/MQTTDeserializePublish.c index dafb6a3..f715e6b 100644 --- a/mqtt/MQTTDeserializePublish.c +++ b/mqtt/MQTTDeserializePublish.c @@ -50,7 +50,7 @@ int MQTTDeserialize_publish(unsigned char* dup, int* qos, unsigned char* retaine *qos = header.bits.qos; *retained = header.bits.retain; - curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */ + curdata += MQTTPacket_decodeBuf(curdata, &mylen); /* read remaining length */ enddata = curdata + mylen; if (!readMQTTLenString(topicName, &curdata, enddata) ||