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	Mon Feb 02 19:54:12 2009 +0300
+++ b/ngx_http_bytes_filter_module.c	Tue Jun 02 21:53:56 2009 +0400
@@ -569,7 +569,7 @@
 
     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;