]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceLayout: protocol_t upgrade fix
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 3 Mar 2011 10:40:16 +0000 (12:40 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 3 Mar 2011 10:40:16 +0000 (12:40 +0200)
The proto acls does not work due to a mistyped strcasecmp if check

src/acl/ProtocolData.cc

index b73a4d9b56ab76b57b80a8f71fa9f1024ced4f1f..54281d69c672f161e3f7221b1902183ee466391e 100644 (file)
@@ -89,7 +89,7 @@ ACLProtocolData::parse()
     for (Tail = &values; *Tail; Tail = &((*Tail)->next));
     while ((t = strtokFile())) {
         for (int p = AnyP::PROTO_NONE; p < AnyP::PROTO_UNKNOWN; ++p) {
-            if (strcasecmp(t, AnyP::ProtocolType_str[p]) != 0) {
+            if (strcasecmp(t, AnyP::ProtocolType_str[p]) == 0) {
                 CbDataList<AnyP::ProtocolType> *q = new CbDataList<AnyP::ProtocolType>(static_cast<AnyP::ProtocolType>(p));
                 *(Tail) = q;
                 Tail = &q->next;