From 928f1a7ba4a968adf6c1bec8c3b72e727163ee5a Mon Sep 17 00:00:00 2001 From: Bruno Iljazovic Date: Tue, 31 Oct 2023 13:37:28 +0100 Subject: [PATCH] [mqtt-client] fix stack-use-after-return Reviewers: ivica Reviewed By: ivica Subscribers: korina Differential Revision: https://repo.mireo.local/D26354 --- include/async_mqtt5/detail/async_traits.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/async_mqtt5/detail/async_traits.hpp b/include/async_mqtt5/detail/async_traits.hpp index 4600e69..0741f71 100644 --- a/include/async_mqtt5/detail/async_traits.hpp +++ b/include/async_mqtt5/detail/async_traits.hpp @@ -28,7 +28,7 @@ void assign_tls_sni(const authority_path& ap, TlsContext& ctx, TlsStream& s); namespace detail { template -decltype(auto) tracking_executor(const Handler& handler) { +auto tracking_executor(const Handler& handler) { return asio::prefer( asio::get_associated_executor(handler), asio::execution::outstanding_work.tracked