From 2e9974be94da75515f27a66c1bbd4e3d5ce951c2 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Sat, 7 Nov 2015 20:16:05 +0200 Subject: [PATCH] Assume empty is root. --- pdns/backends/gsql/gsqlbackend.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/backends/gsql/gsqlbackend.cc b/pdns/backends/gsql/gsqlbackend.cc index e5d712546..422275a60 100644 --- a/pdns/backends/gsql/gsqlbackend.cc +++ b/pdns/backends/gsql/gsqlbackend.cc @@ -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) -- 2.40.0