From 9e29bb2a6a91401744052ac7fcbe5707a9ded091 Mon Sep 17 00:00:00 2001 From: Wiebe Cazemier Date: Thu, 24 Mar 2022 21:25:19 +0100 Subject: [PATCH] Dummy property handling in handlePublish --- mqttpacket.cpp | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/mqttpacket.cpp b/mqttpacket.cpp index 3659b90..34656ee 100644 --- a/mqttpacket.cpp +++ b/mqttpacket.cpp @@ -837,7 +837,11 @@ void MqttPacket::handlePublish() break; } case Mqtt5Properties::CorrelationData: + { + const uint16_t len = readTwoBytesToUInt16(); + readBytes(len); break; + } case Mqtt5Properties::UserProperty: { const uint16_t lenKey = readTwoBytesToUInt16(); @@ -848,7 +852,10 @@ void MqttPacket::handlePublish() break; } case Mqtt5Properties::SubscriptionIdentifier: + { + decodeVariableByteIntAtPos(); break; + } case Mqtt5Properties::ContentType: { const uint16_t len = readTwoBytesToUInt16(); -- libgit2 0.21.4