]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix PROXYPASS case when using external acl creds
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Thu, 27 Aug 2009 09:46:17 +0000 (11:46 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Thu, 27 Aug 2009 09:46:17 +0000 (11:46 +0200)
src/http.cc

index 8ca5fd67a4a15ca9afb2e05a4cd7d34c3d1acd00..24b3ee8ed5aa08c3a6482e02b329bc511d91e0ec 100644 (file)
@@ -1501,7 +1501,7 @@ httpFixupAuthentication(HttpRequest * request, HttpRequest * orig_request, const
     /* external_acl provided credentials */
     if (orig_request->extacl_user.size() && orig_request->extacl_passwd.size() &&
            (strcmp(orig_request->peer_login, "PASS") == 0 ||
-            strcmp(orig_request->peer_login, "PROXYPASS"))) {
+            strcmp(orig_request->peer_login, "PROXYPASS") == 0)) {
        char loginbuf[256];
        snprintf(loginbuf, sizeof(loginbuf), SQUIDSTRINGPH ":" SQUIDSTRINGPH,
                 SQUIDSTRINGPRINT(orig_request->extacl_user),