From f0131ac8b59570d8415117c2b5c5ca413698872b Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Wed, 22 Oct 2025 16:45:55 +0200 Subject: [PATCH] Make a comment more readable. Signed-off-by: Miod Vallat --- pdns/rfc2136handler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/rfc2136handler.cc b/pdns/rfc2136handler.cc index 6922a60bee..2a89473eda 100644 --- a/pdns/rfc2136handler.cc +++ b/pdns/rfc2136handler.cc @@ -861,7 +861,7 @@ static uint8_t updatePrereqCheck323(MOADNSParser& mdp, const updateContext& ctx) if (rec.qtype == rrSet.second) { foundRR++; for (auto& rrItem : *vec) { - rrItem.ttl = rec.ttl; // The compare one line below also compares TTL, so we make them equal because TTL is not user within prerequisite checks. + rrItem.ttl = rec.ttl; // The comparison on the next line also compares TTL, so we make them equal because TTL is not used within prerequisite checks. if (rrItem == rec) { matchRR++; } @@ -958,7 +958,7 @@ static uint8_t updateRecords(MOADNSParser& mdp, DNSSECKeeper& dsk, uint& changed while (ctx.di.backend->get(rec)) { nsRRInZone.push_back(rec); } - if (nsRRInZone.size() > nsRRtoDelete.size()) { // only delete if the NS's we delete are less then what we have in the zone (3.4.2.4) + if (nsRRInZone.size() > nsRRtoDelete.size()) { // only delete if the NS's we delete are less than what we have in the zone (3.4.2.4) for (auto& inZone : nsRRInZone) { for (auto& resrec : nsRRtoDelete) { if (inZone.getZoneRepresentation() == resrec->getContent()->getZoneRepresentation()) { -- 2.47.3