From 2e7834cb13a540bdd3cbf57eb51a295ab7f37dc4 Mon Sep 17 00:00:00 2001 From: Bert Hubert Date: Tue, 6 Nov 2012 10:56:38 +0000 Subject: [PATCH] whitespace, comments, improve an error message git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2855 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- modules/gmysqlbackend/gmysqlbackend.cc | 5 ----- pdns/dnspacket.cc | 2 ++ pdns/tcpreceiver.cc | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/modules/gmysqlbackend/gmysqlbackend.cc b/modules/gmysqlbackend/gmysqlbackend.cc index dfc958696..4e5114d00 100644 --- a/modules/gmysqlbackend/gmysqlbackend.cc +++ b/modules/gmysqlbackend/gmysqlbackend.cc @@ -1,9 +1,7 @@ // $Id$ #include #include - #include "pdns/namespaces.hh" - #include "pdns/dns.hh" #include "pdns/dnsbackend.hh" #include "gmysqlbackend.hh" @@ -12,10 +10,7 @@ #include "pdns/ahuexception.hh" #include "pdns/logger.hh" #include "pdns/arguments.hh" - #include "smysql.hh" - - #include gMySQLBackend::gMySQLBackend(const string &mode, const string &suffix) : GSQLBackend(mode,suffix) diff --git a/pdns/dnspacket.cc b/pdns/dnspacket.cc index f732ec4bb..2c7582542 100644 --- a/pdns/dnspacket.cc +++ b/pdns/dnspacket.cc @@ -158,6 +158,8 @@ void DNSPacket::clearRecords() void DNSPacket::addRecord(const DNSResourceRecord &rr) { + // this removes duplicates from the packet in case we are not compressing + // for AXFR, no such checking is performed! if(d_compress) for(vector::const_iterator i=d_rrs.begin();i!=d_rrs.end();++i) if(rr.qname==i->qname && rr.qtype==i->qtype && rr.content==i->content) { diff --git a/pdns/tcpreceiver.cc b/pdns/tcpreceiver.cc index 06c7e0602..d0cbbb221 100644 --- a/pdns/tcpreceiver.cc +++ b/pdns/tcpreceiver.cc @@ -1,6 +1,6 @@ /* PowerDNS Versatile Database Driven Nameserver - Copyright (C) 2002-2011 PowerDNS.COM BV + Copyright (C) 2002-2012 PowerDNS.COM BV This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 @@ -344,7 +344,7 @@ void *TCPNameserver::doConnection(void *data) L<