From: Remi Gacogne Date: Thu, 3 Oct 2019 11:45:46 +0000 (+0200) Subject: dnsdist: Don't shadow the 'sourceItfName' variable in 'newServer()' X-Git-Tag: dnsdist-1.4.0-rc4~27^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e627f23c61f8595e54f56dfe70a07fda8e27be0;p=thirdparty%2Fpdns.git dnsdist: Don't shadow the 'sourceItfName' variable in 'newServer()' --- diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index 07a6ec1df4..186f889b33 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) {