changeset 18:c3bd9d8ab52a

Fix create_conf to return NULL on errors.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 02 Jun 2009 21:53:56 +0400
parents 314242bda1c1
children 57365655ee44
files ngx_http_bytes_filter_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ngx_http_bytes_filter_module.c
+++ b/ngx_http_bytes_filter_module.c
@@ -569,7 +569,7 @@ ngx_http_bytes_create_conf(ngx_conf_t *c
 
     conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_bytes_conf_t));
     if (conf == NULL) {
-        return NGX_CONF_ERROR;
+        return NULL;
     }
 
     conf->enable = NGX_CONF_UNSET;