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~230^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba3d577f463b124c5f71731143d80b0c7d95de04;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 "<