From 89f3e9ace268e3e91fc90717b5d52699c6a9c86a Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 21 Nov 2023 08:27:45 +0100 Subject: [PATCH] dnsdist: Fix a 'auto causes a copy' warning from Coverity (CID 408612) --- pdns/dnsdist-lua.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index 157076025c..958875c743 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -1571,7 +1571,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck) clientIPCA = boost::get(clientIP); } else { - auto clientIPStr = boost::get(clientIP); + const auto& clientIPStr = boost::get(clientIP); try { clientIPCA = ComboAddress(clientIPStr); } -- 2.47.2