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	Fri May 15 21:25:10 2009 +0400
+++ b/ngx_http_upstream_keepalive_module.c	Tue Jun 02 21:53:19 2009 +0400
@@ -409,7 +409,7 @@
     conf = ngx_pcalloc(cf->pool,
                        sizeof(ngx_http_upstream_keepalive_srv_conf_t));
     if (conf == NULL) {
-        return NGX_CONF_ERROR;
+        return NULL;
     }
 
     /*