From: Fred Morcos Date: Wed, 15 Feb 2023 15:23:31 +0000 (+0100) Subject: Cleanup gatherRecords in ws-auth.cc X-Git-Tag: dnsdist-1.8.0-rc1~3^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=580f1f76bc6a537cdc83642af4fb7bd20a84262d;p=thirdparty%2Fpdns.git Cleanup gatherRecords in ws-auth.cc --- diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index 5b4b87ec1e..c0827d1b66 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -536,7 +536,7 @@ static void validateGatheredRRType(const DNSResourceRecord& rr) { } } -static void gatherRecords(UeberBackend& /* B */, const string& /* logprefix */, const Json& container, const DNSName& qname, const QType& qtype, const int ttl, vector& new_records) { +static void gatherRecords(const Json& container, const DNSName& qname, const QType& qtype, const int ttl, vector& new_records) { DNSResourceRecord rr; rr.qname = qname; rr.qtype = qtype; @@ -1728,7 +1728,7 @@ static void apiServerZones(HttpRequest* req, HttpResponse* resp) { } if (rrset["records"].is_array()) { int ttl = intFromJson(rrset, "ttl"); - gatherRecords(B, req->logprefix, rrset, qname, qtype, ttl, new_records); + gatherRecords(rrset, qname, qtype, ttl, new_records); } if (rrset["comments"].is_array()) { gatherComments(rrset, qname, qtype, new_comments); @@ -2112,7 +2112,7 @@ static void patchZone(UeberBackend& B, HttpRequest* req, HttpResponse* resp) { // ttl shouldn't be part of DELETE, and it shouldn't be required if we don't get new records. int ttl = intFromJson(rrset, "ttl"); - gatherRecords(B, req->logprefix, rrset, qname, qtype, ttl, new_records); + gatherRecords(rrset, qname, qtype, ttl, new_records); for(DNSResourceRecord& rr : new_records) { rr.domain_id = di.id;