Mercurial > hg > nginx
comparison src/http/modules/ngx_http_auth_basic_module.c @ 1786:adca43955f79
return NGX_DECLINED if access directives are not active,
this fixes case when satisfy any does not test active directives at all
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 27 Dec 2007 14:15:34 +0000 |
parents | e958b3cab51a |
children | 2a92804f4109 |
comparison
equal
deleted
inserted
replaced
1785:0673b54f34f7 | 1786:adca43955f79 |
---|---|
111 } state; | 111 } state; |
112 | 112 |
113 alcf = ngx_http_get_module_loc_conf(r, ngx_http_auth_basic_module); | 113 alcf = ngx_http_get_module_loc_conf(r, ngx_http_auth_basic_module); |
114 | 114 |
115 if (alcf->realm.len == 0 || alcf->user_file.len == 0) { | 115 if (alcf->realm.len == 0 || alcf->user_file.len == 0) { |
116 return NGX_OK; | 116 return NGX_DECLINED; |
117 } | 117 } |
118 | 118 |
119 ctx = ngx_http_get_module_ctx(r, ngx_http_auth_basic_module); | 119 ctx = ngx_http_get_module_ctx(r, ngx_http_auth_basic_module); |
120 | 120 |
121 if (ctx) { | 121 if (ctx) { |