changeset 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 142c6443d851
children 2ce9d8a1ca93
files ngx_http_upstream_keepalive_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ngx_http_upstream_keepalive_module.c
+++ b/ngx_http_upstream_keepalive_module.c
@@ -409,7 +409,7 @@ ngx_http_upstream_keepalive_create_conf(
     conf = ngx_pcalloc(cf->pool,
                        sizeof(ngx_http_upstream_keepalive_srv_conf_t));
     if (conf == NULL) {
-        return NGX_CONF_ERROR;
+        return NULL;
     }
 
     /*