aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_auth_basic_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-12-27 14:15:34 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-12-27 14:15:34 +0000
commitfe8a327effce02bdec200e5b5a90b22b2e40af37 (patch)
treedea615bb3143c1870b76824d710fa5e2c9307331 /src/http/modules/ngx_http_auth_basic_module.c
parent11fbf473749f06c838a57821cca5e2f86a36e1a0 (diff)
downloadnginx-fe8a327effce02bdec200e5b5a90b22b2e40af37.tar.gz
nginx-fe8a327effce02bdec200e5b5a90b22b2e40af37.zip
return NGX_DECLINED if access directives are not active,
this fixes case when satisfy any does not test active directives at all
Diffstat (limited to 'src/http/modules/ngx_http_auth_basic_module.c')
-rw-r--r--src/http/modules/ngx_http_auth_basic_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_auth_basic_module.c b/src/http/modules/ngx_http_auth_basic_module.c
index 72b4bbdcb..41e53cd94 100644
--- a/src/http/modules/ngx_http_auth_basic_module.c
+++ b/src/http/modules/ngx_http_auth_basic_module.c
@@ -113,7 +113,7 @@ ngx_http_auth_basic_handler(ngx_http_request_t *r)
alcf = ngx_http_get_module_loc_conf(r, ngx_http_auth_basic_module);
if (alcf->realm.len == 0 || alcf->user_file.len == 0) {
- return NGX_OK;
+ return NGX_DECLINED;
}
ctx = ngx_http_get_module_ctx(r, ngx_http_auth_basic_module);