From: William A. Rowe Jr Date: Tue, 20 Dec 2005 17:10:38 +0000 (+0000) Subject: This shift was treated in 32 bit scope, then masked to 64 bits, X-Git-Tag: 2.3.0~2645 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=783d5b0dc1fd9da7c8576907f4faaa8b3454623e;p=thirdparty%2Fapache%2Fhttpd.git This shift was treated in 32 bit scope, then masked to 64 bits, which was probably quite uncool. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@358040 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/aaa/mod_authnz_ldap.c b/modules/aaa/mod_authnz_ldap.c index 586f80bf433..edce66563c4 100644 --- a/modules/aaa/mod_authnz_ldap.c +++ b/modules/aaa/mod_authnz_ldap.c @@ -576,7 +576,7 @@ static int authz_ldap_check_user_access(request_rec *r) /* Loop through the requirements array until there's no elements * left, or something causes a return from inside the loop */ for(x=0; x < reqs_arr->nelts; x++) { - if (! (reqs[x].method_mask & (1 << m))) { + if (! (reqs[x].method_mask & (APR_INT64_C(1) << m))) { continue; } method_restricted = 1;