From: Bert Hubert Date: Thu, 2 Mar 2006 19:56:43 +0000 (+0000) Subject: not a real fix for ticket #60, but it will have to do. X-Git-Tag: pdns-2.9.20~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02b37061fea43ed29fc972bc24374bf858853a03;p=thirdparty%2Fpdns.git not a real fix for ticket #60, but it will have to do. The suggestion to silently omit unsupported record types won't do as it creates unnoticed inconsistencies. git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@566 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/communicator.cc b/pdns/communicator.cc index 42021ddb9b..2426ae70e1 100644 --- a/pdns/communicator.cc +++ b/pdns/communicator.cc @@ -30,6 +30,9 @@ #include "arguments.hh" #include "session.hh" #include "packetcache.hh" +#include + +using namespace boost; void CommunicatorClass::addSuckRequest(const string &domain, const string &master, bool priority) { @@ -86,6 +89,9 @@ void CommunicatorClass::suck(const string &domain,const string &remote) return; } i->domain_id=domain_id; + if(i->qtype.getCode()>=1024) + throw DBException("Database can't store unknown record type "+lexical_cast(i->qtype.getCode()-1024)); + di.backend->feedRecord(*i); } }