]> granicus.if.org Git - pdns/commitdiff
dnsdist: Don't shadow the 'sourceItfName' variable in 'newServer()'
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 3 Oct 2019 11:45:46 +0000 (13:45 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 3 Oct 2019 11:45:46 +0000 (13:45 +0200)
pdns/dnsdist-lua.cc

index 07a6ec1df409732d8ab1b69c2979076a9ef9c935..186f889b33b8d927fcf7277fa348f5d1538b3b6a 100644 (file)
@@ -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) {