From 4630fd197eed556e7b26673bd8c38d4bfbf8c1c1 Mon Sep 17 00:00:00 2001 From: hno <> Date: Fri, 5 Jul 2002 20:30:07 +0000 Subject: [PATCH] Bugfix for msntauth allow/denyusers. The previous fixes was a bit too effective --- helpers/basic_auth/MSNT/usersfile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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), -- 2.47.3