]> granicus.if.org Git - pdns/commitdiff
Assume empty is root.
authorAki Tuomi <cmouse@cmouse.fi>
Sat, 7 Nov 2015 18:16:05 +0000 (20:16 +0200)
committerAki Tuomi <cmouse@cmouse.fi>
Sat, 7 Nov 2015 18:16:05 +0000 (20:16 +0200)
pdns/backends/gsql/gsqlbackend.cc

index e5d7125462094923b76c31b3c126efa39cf9a5dc..422275a603f4b2ffeb438966716014765a7815cf 100644 (file)
@@ -1588,6 +1588,8 @@ void GSQLBackend::extractRecord(const SSqlStatement::row_t& row, DNSResourceReco
     r.qname=d_qname;
   else
     r.qname=DNSName(row[6]);
+  if (r.qname.empty()) r.qname = DNSName(".");
+
   r.qtype=row[3];
 
   if (r.qtype==QType::MX || r.qtype==QType::SRV)