]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bugfix for msntauth allow/denyusers. The previous fixes was a bit too effective
authorhno <>
Fri, 5 Jul 2002 20:30:07 +0000 (20:30 +0000)
committerhno <>
Fri, 5 Jul 2002 20:30:07 +0000 (20:30 +0000)
helpers/basic_auth/MSNT/usersfile.c

index 1964129f3182795877124a7f8c93974b8c1d6768..6b1320980d0b9168a32920cddb5a6d2742a42c47 100644 (file)
@@ -28,9 +28,9 @@
 static int
 name_cmp(const void *a, const void *b)
 {
-    const char *A = a;
-    const char *B = b;
-    return strcasecmp(A, B);
+    const char * const *A = a;
+    const char * const *B = b;
+    return strcasecmp(*A, *B);
 }
 
 static void
@@ -148,7 +148,7 @@ Check_userlist(usersfile * uf, char *User)
      * If so, allow. If not, deny. Reconstruct the username
      * to have whitespace, to avoid finding wrong string subsets. */
 
-    p = bsearch(User,
+    p = bsearch(&User,
        uf->names,
        uf->Inuse,
        sizeof(*uf->names),