aboutsummaryrefslogtreecommitdiff
path: root/src/mysql/ngx_http_mysql_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mysql/ngx_http_mysql_test.c')
-rw-r--r--src/mysql/ngx_http_mysql_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mysql/ngx_http_mysql_test.c b/src/mysql/ngx_http_mysql_test.c
index 789274337..6b9d7b019 100644
--- a/src/mysql/ngx_http_mysql_test.c
+++ b/src/mysql/ngx_http_mysql_test.c
@@ -129,7 +129,7 @@ ngx_http_mysql_auth(ngx_mysql_t *m)
m->query.len = NGX_MYSQL_CMDPKT_LEN + ngx_mysql_command_query.len;
- m->query.data = ngx_palloc(r->pool, m->query.len);
+ m->query.data = ngx_pnalloc(r->pool, m->query.len);
if (m->query.data == NULL) {
ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
return;