diff options
author | Ryan Bloom <rbb@apache.org> | 2001-08-11 06:04:13 +0200 |
---|---|---|
committer | Ryan Bloom <rbb@apache.org> | 2001-08-11 06:04:13 +0200 |
commit | 6e932b2870762bf8875f3616ad15df36dc859f05 (patch) | |
tree | 6ef72d6c1ca19b93be7bdf88fe669534f5665bd5 /modules/aaa/mod_auth_digest.c | |
parent | hot and muggy in Raleigh (i.e., it's August) (diff) | |
download | apache2-6e932b2870762bf8875f3616ad15df36dc859f05.tar.xz apache2-6e932b2870762bf8875f3616ad15df36dc859f05.zip |
Fix the new method code. We need to cast 1 to an apr_int64_t or it will
be treated as a 32-bit integer, and it will wrap after being shifted
32 times.
Submitted by: Cody Sherr <csherr@covalent.net> and
Ryan Morgan <rmorgan@covalent.net>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90090 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/aaa/mod_auth_digest.c')
-rw-r--r-- | modules/aaa/mod_auth_digest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/aaa/mod_auth_digest.c b/modules/aaa/mod_auth_digest.c index 1cbdc4facc..d7326370ba 100644 --- a/modules/aaa/mod_auth_digest.c +++ b/modules/aaa/mod_auth_digest.c @@ -1851,7 +1851,7 @@ static int digest_check_auth(request_rec *r) for (x = 0; x < reqs_arr->nelts; x++) { - if (!(reqs[x].method_mask & (1 << m))) + if (!(reqs[x].method_mask & (AP_METHOD_BIT << m))) continue; method_restricted = 1; |