From 46a3f56655c2ab65eb6c355af2b5a0d3db1c71c1 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 23 Apr 2018 11:33:17 +0200 Subject: [PATCH] calidns: Skip empty lines, or lines starting with a '#' --- pdns/calidns.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pdns/calidns.cc b/pdns/calidns.cc index cd0e1e630d..58b63013bb 100644 --- a/pdns/calidns.cc +++ b/pdns/calidns.cc @@ -318,6 +318,9 @@ try vector packet; DNSPacketWriter::optvect_t ednsOptions; boost::trim(line); + if (line.empty() || line.at(0) == '#') { + continue; + } auto fields = splitField(line, ' '); std::string qname = fields.first; -- 2.47.2