]> granicus.if.org Git - pdns/commitdiff
nit for gsql
authorAki Tuomi <cmouse@desteem.org>
Mon, 21 Dec 2015 18:34:44 +0000 (20:34 +0200)
committerAki Tuomi <cmouse@desteem.org>
Mon, 21 Dec 2015 18:34:44 +0000 (20:34 +0200)
pdns/backends/gsql/gsqlbackend.cc

index cbbbf9fbd7648202abd7fa3546d56799ea605f30..07305b5d9071c97b674030c8a34cf3ff2cd826a3 100644 (file)
@@ -1592,12 +1592,9 @@ void GSQLBackend::extractRecord(const SSqlStatement::row_t& row, DNSResourceReco
 
   r.qtype=row[3];
 
-  if (r.qtype==QType::MX || r.qtype==QType::SRV) {
-    auto prio = std::stoul(row[2]);
-    if (prio > UINT16_MAX)
-      throw std::range_error((boost::format("priority value %lu for %s is too large") % prio % row[0]).str());
+  if (r.qtype==QType::MX || r.qtype==QType::SRV)
     r.content=row[2]+" "+row[0];
-  else
+  else
     r.content=row[0];
 
   r.last_modified=0;