From: Pieter Lexis Date: Fri, 29 Apr 2016 10:40:40 +0000 (+0200) Subject: Remove the ancient validDNSName function X-Git-Tag: rec-4.0.0-alpha3~24^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3794%2Fhead;p=thirdparty%2Fpdns.git Remove the ancient validDNSName function It was unused anyway, closes #213. --- diff --git a/pdns/packethandler.cc b/pdns/packethandler.cc index 7e3f1bc1f6..16b6a56069 100644 --- a/pdns/packethandler.cc +++ b/pdns/packethandler.cc @@ -881,21 +881,6 @@ int PacketHandler::processNotify(DNSPacket *p) return 0; } -bool validDNSName(const string &name) -{ - string::size_type pos, length=name.length(); - char c; - for(pos=0; pos < length; ++pos) { - c=name[pos]; - if(!((c >= 'a' && c <= 'z') || - (c >= 'A' && c <= 'Z') || - (c >= '0' && c <= '9') || - c =='-' || c == '_' || c=='*' || c=='.' || c=='/' || c=='@' || c==' ' || c=='\\' || c==':')) - return false; - } - return true; -} - DNSPacket *PacketHandler::question(DNSPacket *p) { DNSPacket *ret;