comparison src/http/modules/ngx_http_limit_zone_module.c @ 2912:c7d57b539248

return NULL instead of NGX_CONF_ERROR on a create conf failure
author Igor Sysoev <igor@sysoev.ru>
date Tue, 02 Jun 2009 16:09:44 +0000
parents b3b8c66bd520
children 23d567eabc5d
comparison
equal deleted inserted replaced
2911:32b444fa2ca4 2912:c7d57b539248
379 { 379 {
380 ngx_http_limit_zone_conf_t *conf; 380 ngx_http_limit_zone_conf_t *conf;
381 381
382 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_limit_zone_conf_t)); 382 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_limit_zone_conf_t));
383 if (conf == NULL) { 383 if (conf == NULL) {
384 return NGX_CONF_ERROR; 384 return NULL;
385 } 385 }
386 386
387 /* 387 /*
388 * set by ngx_pcalloc(): 388 * set by ngx_pcalloc():
389 * 389 *