From: Fred Morcos Date: Wed, 15 Feb 2023 15:28:01 +0000 (+0100) Subject: Cleanup handleIXFR X-Git-Tag: dnsdist-1.8.0-rc1~3^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a6ae38ad2974bae045d15147ba2e70ea3af8bcb;p=thirdparty%2Fpdns.git Cleanup handleIXFR --- diff --git a/pdns/ixfrdist.cc b/pdns/ixfrdist.cc index 2c7e3d4d87..b0485463a8 100644 --- a/pdns/ixfrdist.cc +++ b/pdns/ixfrdist.cc @@ -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& clientSOA) { +static bool handleIXFR(int fd, const MOADNSParser& mdp, const shared_ptr& clientSOA) { vector> 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; }