From 0ffa0511fb70b520027325fd8288d422884e8f48 Mon Sep 17 00:00:00 2001 From: Wiebe Cazemier Date: Sat, 23 Apr 2022 13:36:30 +0200 Subject: [PATCH] Subscription identifiers in subscribe is protocol error --- mqttpacket.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mqttpacket.cpp b/mqttpacket.cpp index d85b211..82b29b3 100644 --- a/mqttpacket.cpp +++ b/mqttpacket.cpp @@ -730,8 +730,7 @@ void MqttPacket::handleSubscribe() switch (prop) { case Mqtt5Properties::SubscriptionIdentifier: - decodeVariableByteIntAtPos(); - break; + throw ProtocolError("Subscription identifiers not supported", ReasonCodes::ProtocolError); case Mqtt5Properties::UserProperty: readUserProperty(); break; -- libgit2 0.21.4