]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: only upgrade supported unknown TYPExxx records
authorKees Monshouwer <mind04@monshouwer.org>
Mon, 26 Oct 2020 16:16:30 +0000 (17:16 +0100)
committermind04 <mind04@monshouwer.org>
Mon, 26 Oct 2020 18:23:27 +0000 (19:23 +0100)
pdns/backends/gsql/gsqlbackend.cc

index 1d6833a3a2478b01b5436b1be839d2f365ae5b8e..d72c6394bcacfa05829e853f95cde38d82ae39da 100644 (file)
@@ -1853,7 +1853,7 @@ void GSQLBackend::extractRecord(SSqlStatement::row_t& row, DNSResourceRecord& r)
 
   r.qtype=row[3];
 
-  if (d_upgradeContent && DNSRecordContent::isUnknownType(row[3])) {
+  if (d_upgradeContent && DNSRecordContent::isUnknownType(row[3]) && r.qtype.isSupportedType()) {
     r.content = DNSRecordContent::upgradeContent(r.qname, r.qtype, row[0]);
   }
   else if (r.qtype==QType::MX || r.qtype==QType::SRV) {