]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Cleanup handleIXFR
authorFred Morcos <fred.morcos@open-xchange.com>
Wed, 15 Feb 2023 15:28:01 +0000 (16:28 +0100)
committerFred Morcos <fred.morcos@open-xchange.com>
Mon, 20 Feb 2023 10:22:48 +0000 (11:22 +0100)
pdns/ixfrdist.cc

index 2c7e3d4d879a0c46f2ad64e0eb359a41ecaf8aab..b0485463a8f16e840a28a16cd53ab5b16ddc3e8d 100644 (file)
@@ -665,7 +665,7 @@ static bool handleAXFR(int fd, const MOADNSParser& mdp) {
 /* Produces an IXFR if one can be made according to the rules in RFC 1995 and
  * creates a SOA or AXFR packet when required by the RFC.
  */
-static bool handleIXFR(int fd, const ComboAddress& /* destination */, const MOADNSParser& mdp, const shared_ptr<SOARecordContent>& clientSOA) {
+static bool handleIXFR(int fd, const MOADNSParser& mdp, const shared_ptr<SOARecordContent>& clientSOA) {
   vector<std::shared_ptr<ixfrdiff_t>> toSend;
 
   /* we get a shared pointer of the zone info that we can't modify, ever.
@@ -943,7 +943,7 @@ static void tcpWorker(int tid) {
           continue;
         }
 
-        if (!handleIXFR(cfd, saddr, mdp, clientSOA)) {
+        if (!handleIXFR(cfd, mdp, clientSOA)) {
           close(cfd);
           continue;
         }