diff options
| author | Ippolitov Igor <iippolitov@nginx.com> | 2023-10-19 12:50:39 +0100 |
|---|---|---|
| committer | Ippolitov Igor <iippolitov@nginx.com> | 2023-10-19 12:50:39 +0100 |
| commit | c43629880472bba8d389dfb0b7ae6d883b0ba499 (patch) | |
| tree | acecdcb36cfb85fac3d8cdbfbe473c26ac2e2686 /src/nxt_unit.c | |
| parent | 8c4425ccb9a413e8d0506e0254f0e84bd89a32a6 (diff) | |
| parent | fb33ec86a3b6ca6a844dfa6980bb9e083094abec (diff) | |
| download | unit-1.31.1-1.tar.gz unit-1.31.1-1.tar.bz2 | |
Merged with the default branch.1.31.1-1
Diffstat (limited to 'src/nxt_unit.c')
| -rw-r--r-- | src/nxt_unit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nxt_unit.c b/src/nxt_unit.c index e1b1897a..b6291b2d 100644 --- a/src/nxt_unit.c +++ b/src/nxt_unit.c @@ -2148,7 +2148,8 @@ nxt_unit_response_realloc(nxt_unit_request_info_t *req, resp->status = req->response->status; resp->content_length = req->response->content_length; - p = buf->start + max_fields_count * sizeof(nxt_unit_field_t); + p = buf->start + sizeof(nxt_unit_response_t) + + max_fields_count * sizeof(nxt_unit_field_t); f = resp->fields; for (i = 0; i < req->response->fields_count; i++) { |
