]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: Simplify the SQL upgrade condition 12776/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 3 Jul 2023 18:08:36 +0000 (20:08 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 3 Jul 2023 18:08:36 +0000 (20:08 +0200)
pdns/backends/gsql/gsqlbackend.cc

index 4143f99dfe30ad11c789d049415a7f0ccc42f68a..61d7ea08a85cad96d05fef3d1f14e95a57cd94c7 100644 (file)
@@ -2156,7 +2156,7 @@ void GSQLBackend::extractRecord(SSqlStatement::row_t& row, DNSResourceRecord& r)
 
   r.qtype=row[3];
 
-  if (d_upgradeContent && DNSRecordContent::isUnknownType(row[3]) && r.qtype.isSupportedType() && !r.qtype.isMetadataType() && DNSRecordContent::isRegisteredType(r.qtype, r.qclass) && r.qtype != QType::NSEC && r.qtype != QType::NSEC3 && r.qtype != QType::ANY) {
+  if (d_upgradeContent && DNSRecordContent::isUnknownType(row[3]) && DNSRecordContent::isRegisteredType(r.qtype, r.qclass)) {
     r.content = DNSRecordContent::upgradeContent(r.qname, r.qtype, row[0]);
   }
   else if (r.qtype==QType::MX || r.qtype==QType::SRV) {