diff --git a/ChangeLog b/ChangeLog index 8666b094..2227038a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-12-16 Tatsuhiro Tsujikawa + + Fixed compiler warning + * src/Cookie.cc + 2008-12-16 Tatsuhiro Tsujikawa Fixed the cookie implementation based on RFC2965. diff --git a/src/Cookie.cc b/src/Cookie.cc index 924bbec2..bdbfaad8 100644 --- a/src/Cookie.cc +++ b/src/Cookie.cc @@ -180,7 +180,7 @@ bool Cookie::validate(const std::string& requestHost, size_t dotCount = std::count(normReqHost.begin(), normReqHost.begin()+ (normReqHost.size()-_domain.size()), '.'); - if(dotCount > 1 || dotCount == 1 && normReqHost[0] != '.') { + if(dotCount > 1 || (dotCount == 1 && normReqHost[0] != '.')) { return false; } }