aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_auth_basic_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-06-02 16:09:44 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-06-02 16:09:44 +0000
commit260c4321d71806f51d124d79cdff8e8e496a4956 (patch)
treea6fe073d5f57d49b05562f9ce020b3a532c85c8c /src/http/modules/ngx_http_auth_basic_module.c
parent05822df0cb9dcf9909f4d82be7ce1becd108eeac (diff)
downloadnginx-260c4321d71806f51d124d79cdff8e8e496a4956.tar.gz
nginx-260c4321d71806f51d124d79cdff8e8e496a4956.zip
return NULL instead of NGX_CONF_ERROR on a create conf failure
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 1d2d75e73..c9ce694ef 100644
--- a/src/http/modules/ngx_http_auth_basic_module.c
+++ b/src/http/modules/ngx_http_auth_basic_module.c
@@ -372,7 +372,7 @@ ngx_http_auth_basic_create_loc_conf(ngx_conf_t *cf)
conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_auth_basic_loc_conf_t));
if (conf == NULL) {
- return NGX_CONF_ERROR;
+ return NULL;
}
return conf;