]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rfc2136handler.cc: Rename forwardPacket to l_forwardPacket
authorAki Tuomi <cmouse@cmouse.fi>
Mon, 21 Oct 2019 09:24:08 +0000 (12:24 +0300)
committerAki Tuomi <cmouse@cmouse.fi>
Tue, 29 Oct 2019 10:03:20 +0000 (12:03 +0200)
rfc2136handler.cc:616:30: warning: declaration of 'forwardPacket' shadows a member of 'this'

pdns/rfc2136handler.cc

index 03b3856bf0184855117e2db287b770c0f506982f..dfdea0420b8fb69f6d0cf3028f9b747aa3e610c6 100644 (file)
@@ -613,12 +613,12 @@ int PacketHandler::forwardPacket(const string &msgPrefix, const DNSPacket& p, co
       continue;
     }
 
-    DNSPacket forwardPacket(p);
-    forwardPacket.setID(dns_random_uint16());
-    forwardPacket.setRemote(&remote);
-    uint16_t len=htons(forwardPacket.getString().length());
+    DNSPacket l_forwardPacket(p);
+    l_forwardPacket.setID(dns_random_uint16());
+    l_forwardPacket.setRemote(&remote);
+    uint16_t len=htons(l_forwardPacket.getString().length());
     string buffer((const char*)&len, 2);
-    buffer.append(forwardPacket.getString());
+    buffer.append(l_forwardPacket.getString());
     if(write(sock, buffer.c_str(), buffer.length()) < 0) {
       g_log<<Logger::Error<<msgPrefix<<"Unable to forward update message to "<<remote.toStringWithPort()<<", error:"<<stringerror()<<endl;
       try {