Skip to content

Commit 59f1b4c

Browse files
authored
Merge pull request #1 from wuhaogs/fix_wuhaogs_b2
fix:fixed crash issues when the illegal topic is received
2 parents b81f033 + 6bc86f8 commit 59f1b4c

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)