Skip to content

Commit

Permalink
auth, check return value of getCatalogMembers()
Browse files Browse the repository at this point in the history
  • Loading branch information
mind04 committed Jan 28, 2025
1 parent d729fa5 commit 8209ca9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pdns/tcpreceiver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,12 @@ int TCPNameserver::doAXFR(const DNSName &target, std::unique_ptr<DNSPacket>& q,
zrrs.emplace_back(CatalogInfo::getCatalogVersionRecord(target));

vector<CatalogInfo> members;
sd.db->getCatalogMembers(target, members, CatalogInfo::CatalogType::Producer);
if (!sd.db->getCatalogMembers(target, members, CatalogInfo::CatalogType::Producer)) {
g_log << Logger::Error << logPrefix << "getting catalog members failed, aborting AXFR" << endl;
outpacket->setRcode(RCode::ServFail);
sendPacket(outpacket, outsock);
return 0;
}
for (const auto& ci : members) {
ci.toDNSZoneRecords(target, zrrs);
}
Expand Down

0 comments on commit 8209ca9

Please sign in to comment.