comparison src/http/v3/ngx_http_v3_request.c @ 8394:df18ae7161b8 quic

Assorted fixes. Found by Clang Static Analyzer.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 20 May 2020 15:36:24 +0300
parents 7bd334b8d91a
children d2759e4cc437
comparison
equal deleted inserted replaced
8393:e169cce912c7 8394:df18ae7161b8
616 len = 1 + ngx_http_v3_encode_varlen_int(NULL, 616 len = 1 + ngx_http_v3_encode_varlen_int(NULL,
617 r->headers_out.content_length_n); 617 r->headers_out.content_length_n);
618 618
619 b = ngx_create_temp_buf(c->pool, len); 619 b = ngx_create_temp_buf(c->pool, len);
620 if (b == NULL) { 620 if (b == NULL) {
621 NULL; 621 return NULL;
622 } 622 }
623 623
624 *b->last++ = NGX_HTTP_V3_FRAME_DATA; 624 *b->last++ = NGX_HTTP_V3_FRAME_DATA;
625 b->last = (u_char *) ngx_http_v3_encode_varlen_int(b->last, 625 b->last = (u_char *) ngx_http_v3_encode_varlen_int(b->last,
626 r->headers_out.content_length_n); 626 r->headers_out.content_length_n);