summaryrefslogtreecommitdiffhomepage
path: root/src/mysql
diff options
context:
space:
mode:
Diffstat (limited to 'src/mysql')
-rw-r--r--src/mysql/ngx_http_mysql_test.c2
-rw-r--r--src/mysql/ngx_mysql.c2
2 files changed, 2 insertions, 2 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;
diff --git a/src/mysql/ngx_mysql.c b/src/mysql/ngx_mysql.c
index fd98f2b30..eedf6773b 100644
--- a/src/mysql/ngx_mysql.c
+++ b/src/mysql/ngx_mysql.c
@@ -215,7 +215,7 @@ ngx_mysql_read_server_greeting(ngx_event_t *rev)
len += 20;
}
- auth = ngx_palloc(m->pool, len);
+ auth = ngx_pnalloc(m->pool, len);
if (auth == NULL) {
ngx_mysql_close(m, NGX_ERROR);
return;