From 71925546fdd35fbb6057e5d7604c987e735c284a Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Tue, 7 Jun 2016 22:36:40 +0300 Subject: [PATCH] recursor: Require = in forward-zones --- pdns/reczones.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/reczones.cc b/pdns/reczones.cc index b10b48b51..74df7ec8e 100644 --- a/pdns/reczones.cc +++ b/pdns/reczones.cc @@ -392,6 +392,8 @@ SyncRes::domainmap_t* parseAuthAndForwards() stringtok(parts, ::arg()[option_names[n]], " ,\t\n\r"); for(parts_t::const_iterator iter = parts.begin(); iter != parts.end(); ++iter) { SyncRes::AuthDomain ad; + if ((*iter).find('=') == string::npos) + throw PDNSException("Error parsing '" + *iter + "', missing ="); pair headers=splitField(*iter, '='); trim(headers.first); trim(headers.second); -- 2.40.0