From fe8a327effce02bdec200e5b5a90b22b2e40af37 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 27 Dec 2007 14:15:34 +0000 Subject: return NGX_DECLINED if access directives are not active, this fixes case when satisfy any does not test active directives at all --- src/http/modules/ngx_http_auth_basic_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http/modules/ngx_http_auth_basic_module.c') 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); -- cgit