From 8e627f23c61f8595e54f56dfe70a07fda8e27be0 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 3 Oct 2019 13:45:46 +0200 Subject: [PATCH] dnsdist: Don't shadow the 'sourceItfName' variable in 'newServer()' --- 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 07a6ec1df..186f889b3 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -225,7 +225,7 @@ void setupLuaConfig(bool client) if (parsed == false) { /* try to parse as interface name, or v4/v6@itf */ - string sourceItfName = source.substr(pos == std::string::npos ? 0 : pos + 1); + sourceItfName = source.substr(pos == std::string::npos ? 0 : pos + 1); unsigned int itfIdx = if_nametoindex(sourceItfName.c_str()); if (itfIdx != 0) { -- 2.40.0