]> granicus.if.org Git - pdns/commitdiff
recursor: Require = in forward-zones
authorAki Tuomi <cmouse@cmouse.fi>
Tue, 7 Jun 2016 19:36:40 +0000 (22:36 +0300)
committerAki Tuomi <cmouse@cmouse.fi>
Tue, 7 Jun 2016 19:49:35 +0000 (22:49 +0300)
pdns/reczones.cc

index b10b48b511251e586710d17113371942e84115a7..74df7ec8e161ceee296eb5597cd5cbafd7263599 100644 (file)
@@ -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<string,string> headers=splitField(*iter, '=');
       trim(headers.first);
       trim(headers.second);