From 1fbf6feac8224a53413dd8107512ae14483ac0e8 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Mon, 17 Jun 2019 22:26:29 +0200 Subject: [PATCH] clarify code with a comment --- pdns/slavecommunicator.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/slavecommunicator.cc b/pdns/slavecommunicator.cc index 6808cf8880..53b66197c3 100644 --- a/pdns/slavecommunicator.cc +++ b/pdns/slavecommunicator.cc @@ -92,6 +92,7 @@ void CommunicatorClass::ixfrSuck(const DNSName &domain, const TSIGTriplet& tt, c DNSSECKeeper dk (&B); // reuse our UeberBackend copy for DNSSECKeeper bool wrongDomainKind = false; + // this checks three error conditions, and sets wrongDomainKind if we hit the third & had an error if(!B.getDomainInfo(domain, di) || !di.backend || (wrongDomainKind = true, di.kind != DomainInfo::Slave)) { // di.backend and B are mostly identical if(wrongDomainKind) g_log<