From 6081679bdbe39dd0243528af4c4a50d33ac93799 Mon Sep 17 00:00:00 2001 From: Wiebe Cazemier Date: Tue, 22 Feb 2022 21:53:41 +0100 Subject: [PATCH] Fix sending wrong downgraded QoS retained messages --- subscriptionstore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subscriptionstore.cpp b/subscriptionstore.cpp index 71b48ad..af34ffd 100644 --- a/subscriptionstore.cpp +++ b/subscriptionstore.cpp @@ -423,9 +423,9 @@ uint64_t SubscriptionStore::giveClientRetainedMessages(const std::shared_ptr possibleQos0Copy; for(MqttPacket &packet : packetList) { + std::shared_ptr possibleQos0Copy; ses->writePacket(packet, max_qos, possibleQos0Copy, count); } -- libgit2 0.21.4