summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_rewrite_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-07-27 11:04:28 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-07-27 11:04:28 +0000
commitb5142550ccc6b61235683531183437b9a4cdf3a4 (patch)
treeffa590b627508252c749cc3c0c98be376ab1bc82 /src/http/modules/ngx_http_rewrite_module.c
parent1099f9f6575337a631cd089b8d30eec7ec9ecd17 (diff)
downloadnginx-b5142550ccc6b61235683531183437b9a4cdf3a4.tar.gz
nginx-b5142550ccc6b61235683531183437b9a4cdf3a4.tar.bz2
fix return value
Diffstat (limited to 'src/http/modules/ngx_http_rewrite_module.c')
-rw-r--r--src/http/modules/ngx_http_rewrite_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_rewrite_module.c b/src/http/modules/ngx_http_rewrite_module.c
index 840c05330..f7c138dbb 100644
--- a/src/http/modules/ngx_http_rewrite_module.c
+++ b/src/http/modules/ngx_http_rewrite_module.c
@@ -568,7 +568,7 @@ ngx_http_rewrite_if(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
if_code = ngx_array_push_n(lcf->codes, sizeof(ngx_http_script_if_code_t));
if (if_code == NULL) {
- return NULL;
+ return NGX_CONF_ERROR;
}
if_code->code = ngx_http_script_if_code;