This commit is contained in:
Valentin Bartenev
2018-04-05 15:49:41 +03:00
parent 49bd3a21e0
commit d15b4ca906
9 changed files with 30 additions and 27 deletions

View File

@@ -329,8 +329,8 @@ nxt_php_read_request(nxt_task_t *task, nxt_app_rmsg_t *rmsg,
script_name.start = NULL;
}
ctx->script.length = nxt_php_root.length + h->path.length +
script_name.length;
ctx->script.length = nxt_php_root.length + h->path.length
+ script_name.length;
p = ctx->script.start = nxt_malloc(ctx->script.length + 1);
if (nxt_slow_path(p == NULL)) {
return NXT_ERROR;