]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Require URI field
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Sun, 14 Feb 2010 18:10:45 +0000 (19:10 +0100)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Sun, 14 Feb 2010 18:10:45 +0000 (19:10 +0100)
src/auth/digest/auth_digest.cc

index e3a096db905ce69068aec933c23a399640c3ed47..9d29d0de9cb6950cd7af00af891b2e24c1643119 100644 (file)
@@ -1254,7 +1254,11 @@ AuthDigestConfig::decode(char const *proxy_auth)
     }
 
     /* we can't check the URI just yet. We'll check it in the
-     * authenticate phase */
+     * authenticate phase, but needs to be given */
+    if (!digest_request->uri) {
+        debugs(29, 4, "authenticateDigestDecode: Missing URI field");
+        return authDigestLogUsername(username, digest_request);
+    }
 
     /* is the response the correct length? */