From: bert hubert Date: Fri, 30 Oct 2015 19:14:39 +0000 (+0100) Subject: fix up const unsigned char* for label length, plus make slowCompare public in DNSName... X-Git-Tag: dnsdist-1.0.0-alpha1~271 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3da403d44a98ccf8d21224571ee5aa8bb8d3374;p=pdns fix up const unsigned char* for label length, plus make slowCompare public in DNSName so cache can fallback to it --- 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 "<