From f3da403d44a98ccf8d21224571ee5aa8bb8d3374 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Fri, 30 Oct 2015 20:14:39 +0100 Subject: [PATCH] fix up const unsigned char* for label length, plus make slowCompare public in DNSName so cache can fallback to it --- pdns/dnsname.hh | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/pdns/dnsname.hh b/pdns/dnsname.hh index 6bf98d32a..92001fcc3 100644 --- a/pdns/dnsname.hh +++ b/pdns/dnsname.hh @@ -81,11 +81,11 @@ public: } inline bool canonCompare(const DNSName& rhs) const; - + bool slowCanonCompare(const DNSName& rhs) const; private: //typedef __gnu_cxx::__sso_string string_t; typedef std::string string_t; - bool slowCanonCompare(const DNSName& rhs) const; + string_t d_storage; bool d_empty; @@ -117,10 +117,10 @@ inline bool DNSName::canonCompare(const DNSName& rhs) const uint8_t ourpos[64], rhspos[64]; uint8_t ourcount=0, rhscount=0; //cout<<"Asked to compare "<