comparison ngx_http_bytes_filter_module.c @ 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
comparison
equal deleted inserted replaced
17:314242bda1c1 18:c3bd9d8ab52a
567 { 567 {
568 ngx_http_bytes_conf_t *conf; 568 ngx_http_bytes_conf_t *conf;
569 569
570 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_bytes_conf_t)); 570 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_bytes_conf_t));
571 if (conf == NULL) { 571 if (conf == NULL) {
572 return NGX_CONF_ERROR; 572 return NULL;
573 } 573 }
574 574
575 conf->enable = NGX_CONF_UNSET; 575 conf->enable = NGX_CONF_UNSET;
576 576
577 return conf; 577 return conf;