Skip to content

Commit 6bc86f8

Browse files
committed
fix:fixed crash issues when the illegal topic is received
1 parent 956e0c8 commit 6bc86f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mqtt/MQTTDeserializePublish.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ int MQTTDeserialize_publish(unsigned char* dup, int* qos, unsigned char* retaine
5050
*qos = header.bits.qos;
5151
*retained = header.bits.retain;
5252

53-
curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */
53+
curdata += MQTTPacket_decodeBuf(curdata, &mylen); /* read remaining length */
5454
enddata = curdata + mylen;
5555

5656
if (!readMQTTLenString(topicName, &curdata, enddata) ||

0 commit comments

Comments
 (0)