Update ngx_http_v3_parse.c

This commit is contained in:
Sanjay Jangid 2025-07-14 16:34:16 +05:30 committed by GitHub
parent c52c5698cd
commit 838b8537b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -646,16 +646,17 @@ ngx_http_v3_parse_literal(ngx_connection_t *c, ngx_http_v3_parse_literal_t *st,
ch = *b->pos++; ch = *b->pos++;
if (st->huffman) { if (st->huffman) {
if (ngx_http_huff_decode(&st->huffstate, &ch, 1, &st->last, if (ngx_http_huff_decode(&st->huffstate, &ch, 1, &st->last,
st->length == 1, c->log) st->length == 1, c->log)
!= NGX_OK) != NGX_OK)
{ {
ngx_log_error(NGX_LOG_INFO, c->log, 0, ngx_log_error(NGX_LOG_INFO, c->log, 0,
"client sent invalid encoded field line"); "client sent invalid encoded field line");
return NGX_ERROR; return NGX_ERROR;
} }
} else {
} else {
*st->last++ = ch; *st->last++ = ch;
} }