comparison src/http/ngx_http_upstream.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 896db5a09bd2
children 80a314b63c56
comparison
equal deleted inserted replaced
2911:32b444fa2ca4 2912:c7d57b539248
4180 4180
4181 if (ngx_array_init(&umcf->upstreams, cf->pool, 4, 4181 if (ngx_array_init(&umcf->upstreams, cf->pool, 4,
4182 sizeof(ngx_http_upstream_srv_conf_t *)) 4182 sizeof(ngx_http_upstream_srv_conf_t *))
4183 != NGX_OK) 4183 != NGX_OK)
4184 { 4184 {
4185 return NGX_CONF_ERROR; 4185 return NULL;
4186 } 4186 }
4187 4187
4188 return umcf; 4188 return umcf;
4189 } 4189 }
4190 4190