diff 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
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c	Tue Jun 02 16:08:38 2009 +0000
+++ b/src/http/ngx_http_upstream.c	Tue Jun 02 16:09:44 2009 +0000
@@ -4182,7 +4182,7 @@
                        sizeof(ngx_http_upstream_srv_conf_t *))
         != NGX_OK)
     {
-        return NGX_CONF_ERROR;
+        return NULL;
     }
 
     return umcf;