Mercurial > hg > nginx
comparison src/http/v3/ngx_http_v3_parse.c @ 9186:f366007dd23a
HTTP/3: added Huffman decoding error logging.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 14 Nov 2023 15:26:02 +0400 |
parents | f742b1b46901 |
children | 4c7a9355bcae |
comparison
equal
deleted
inserted
replaced
9185:c458cd00bb0b | 9186:f366007dd23a |
---|---|
648 if (st->huffman) { | 648 if (st->huffman) { |
649 if (ngx_http_huff_decode(&st->huffstate, &ch, 1, &st->last, | 649 if (ngx_http_huff_decode(&st->huffstate, &ch, 1, &st->last, |
650 st->length == 1, c->log) | 650 st->length == 1, c->log) |
651 != NGX_OK) | 651 != NGX_OK) |
652 { | 652 { |
653 ngx_log_error(NGX_LOG_INFO, c->log, 0, | |
654 "client sent invalid encoded field line"); | |
653 return NGX_ERROR; | 655 return NGX_ERROR; |
654 } | 656 } |
655 | 657 |
656 } else { | 658 } else { |
657 *st->last++ = ch; | 659 *st->last++ = ch; |