diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-06-02 20:09:44 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-06-02 20:09:44 +0400 |
commit | 260c4321d71806f51d124d79cdff8e8e496a4956 (patch) | |
tree | a6fe073d5f57d49b05562f9ce020b3a532c85c8c /src/http/modules/perl | |
parent | 05822df0cb9dcf9909f4d82be7ce1becd108eeac (diff) |
return NULL instead of NGX_CONF_ERROR on a create conf failure
Diffstat (limited to 'src/http/modules/perl')
-rw-r--r-- | src/http/modules/perl/ngx_http_perl_module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/modules/perl/ngx_http_perl_module.c b/src/http/modules/perl/ngx_http_perl_module.c index e22428a78..4409e8fa7 100644 --- a/src/http/modules/perl/ngx_http_perl_module.c +++ b/src/http/modules/perl/ngx_http_perl_module.c @@ -784,7 +784,7 @@ ngx_http_perl_create_main_conf(ngx_conf_t *cf) pmcf = ngx_pcalloc(cf->pool, sizeof(ngx_http_perl_main_conf_t)); if (pmcf == NULL) { - return NGX_CONF_ERROR; + return NULL; } if (ngx_array_init(&pmcf->requires, cf->pool, 1, sizeof(u_char *)) @@ -869,7 +869,7 @@ ngx_http_perl_create_loc_conf(ngx_conf_t *cf) plcf = ngx_pcalloc(cf->pool, sizeof(ngx_http_perl_loc_conf_t)); if (plcf == NULL) { - return NGX_CONF_ERROR; + return NULL; } /* |