]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Simplify PTR record creation. NFCI
authorMiod Vallat <miod.vallat@powerdns.com>
Wed, 20 May 2026 07:31:31 +0000 (09:31 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Wed, 20 May 2026 08:18:57 +0000 (10:18 +0200)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
pdns/auth-catalogzone.cc

index 828d9f6137a9870bdc9de73ee5a638c6276c54fd..f791f80516cedbf02a273bd41c013d5d1c3b3df3 100644 (file)
@@ -147,7 +147,7 @@ void CatalogInfo::toDNSZoneRecords(const ZoneName& zone, vector<DNSZoneRecord>&
   DNSZoneRecord dzr;
   dzr.dr.d_name = prefix;
   dzr.dr.d_type = QType::PTR;
-  dzr.dr.setContent(std::make_shared<PTRRecordContent>(d_zone.operator const DNSName&().toString()));
+  dzr.dr.setContent(std::make_shared<PTRRecordContent>(d_zone.operator const DNSName&()));
   dzrs.emplace_back(dzr);
 
   // coo property