# HG changeset patch # User Maxim Dounin # Date 1243965236 -14400 # Node ID c3bd9d8ab52a192c1bfb10d3853b3fa90e9abc14 # Parent 314242bda1c130260b4f14f4064de42f08ed67a1 Fix create_conf to return NULL on errors. diff --git a/ngx_http_bytes_filter_module.c b/ngx_http_bytes_filter_module.c --- 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;