[PATCH 1 of 1] fix ngx_http_mysql_test_create_loc_conf return value on error

Markus Linnala Markus.Linnala at cybercom.com
Sun Aug 17 19:02:21 UTC 2014


# HG changeset patch
# User Markus Linnala <Markus.Linnala at cybercom.com>
# Date 1408301978 -10800
#      Sun Aug 17 21:59:38 2014 +0300
# Node ID 0719145489f842b14765506f8856798c2203e3cc
# Parent  5524fc592881550bc5ed108993af148ebd09fa22
fix ngx_http_mysql_test_create_loc_conf return value on error

diff -r 5524fc592881 -r 0719145489f8 src/mysql/ngx_http_mysql_test.c
--- a/src/mysql/ngx_http_mysql_test.c	Sun Aug 17 21:01:53 2014 +0300
+++ b/src/mysql/ngx_http_mysql_test.c	Sun Aug 17 21:59:38 2014 +0300
@@ -163,7 +163,7 @@
 
     conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_mysql_test_conf_t));
     if (conf == NULL) {
-        return NGX_CONF_ERROR;
+        return NULL;
     }
 
     return conf;



More information about the nginx-devel mailing list