From: hno <> Date: Fri, 5 Jul 2002 20:30:07 +0000 (+0000) Subject: Bugfix for msntauth allow/denyusers. The previous fixes was a bit too effective X-Git-Tag: SQUID_3_0_PRE1~922 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4630fd197eed556e7b26673bd8c38d4bfbf8c1c1;p=thirdparty%2Fsquid.git Bugfix for msntauth allow/denyusers. The previous fixes was a bit too effective --- diff --git a/helpers/basic_auth/MSNT/usersfile.c b/helpers/basic_auth/MSNT/usersfile.c index 1964129f31..6b1320980d 100644 --- a/helpers/basic_auth/MSNT/usersfile.c +++ b/helpers/basic_auth/MSNT/usersfile.c @@ -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),