Mercurial > hg > nginx
comparison src/http/v3/ngx_http_v3_request.c @ 8511:830680e78b24 quic
HTTP/3: fixed context storage in request body parser.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 18 Aug 2020 17:11:32 +0300 |
parents | 0596fe1aee16 |
children | 9ffef6054abf |
comparison
equal
deleted
inserted
replaced
8510:532fe796b0e2 | 8511:830680e78b24 |
---|---|
390 st = ngx_pcalloc(c->pool, sizeof(ngx_http_v3_parse_data_t)); | 390 st = ngx_pcalloc(c->pool, sizeof(ngx_http_v3_parse_data_t)); |
391 if (st == NULL) { | 391 if (st == NULL) { |
392 goto failed; | 392 goto failed; |
393 } | 393 } |
394 | 394 |
395 r->h3_parse = st; | 395 ctx->h3_parse = st; |
396 } | 396 } |
397 | 397 |
398 if (ctx->size) { | 398 if (ctx->size) { |
399 ctx->length = ctx->size + 1; | 399 ctx->length = ctx->size + 1; |
400 return (b->pos == b->last) ? NGX_AGAIN : NGX_OK; | 400 return (b->pos == b->last) ? NGX_AGAIN : NGX_OK; |