Mercurial > hg > ngx_http_upstream_keepalive
comparison ngx_http_upstream_keepalive_module.c @ 18:2054159546d0
Keepalive: fix create_conf to return NULL on errors.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 02 Jun 2009 21:53:19 +0400 |
parents | 28af4b0b32c1 |
children | 9a4ee6fe1c6d |
comparison
equal
deleted
inserted
replaced
17:142c6443d851 | 18:2054159546d0 |
---|---|
407 ngx_http_upstream_keepalive_srv_conf_t *conf; | 407 ngx_http_upstream_keepalive_srv_conf_t *conf; |
408 | 408 |
409 conf = ngx_pcalloc(cf->pool, | 409 conf = ngx_pcalloc(cf->pool, |
410 sizeof(ngx_http_upstream_keepalive_srv_conf_t)); | 410 sizeof(ngx_http_upstream_keepalive_srv_conf_t)); |
411 if (conf == NULL) { | 411 if (conf == NULL) { |
412 return NGX_CONF_ERROR; | 412 return NULL; |
413 } | 413 } |
414 | 414 |
415 /* | 415 /* |
416 * set by ngx_pcalloc(): | 416 * set by ngx_pcalloc(): |
417 * | 417 * |