From: Sergey Kandaurov Date: Thu, 9 Sep 2021 16:12:27 +0000 (+0300) Subject: QUIC: removed Firefox workaround for trailing zeroes in datagrams. X-Git-Tag: release-1.25.0~4^2~263 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=4208e67e9808e2d458c0b705184308c41dc72bdf;p=nginx.git QUIC: removed Firefox workaround for trailing zeroes in datagrams. This became unnecessary after discarding invalid packets since a6784cf32c13. --- diff --git a/src/event/quic/ngx_event_quic.c b/src/event/quic/ngx_event_quic.c index 076e19422..478fc8461 100644 --- a/src/event/quic/ngx_event_quic.c +++ b/src/event/quic/ngx_event_quic.c @@ -730,11 +730,6 @@ ngx_quic_input(ngx_connection_t *c, ngx_buf_t *b, ngx_quic_conf_t *conf) /* b->pos is at header end, adjust by actual packet length */ b->pos = pkt.data + pkt.len; - /* firefox workaround: skip zero padding at the end of quic packet */ - while (b->pos < b->last && *(b->pos) == 0) { - b->pos++; - } - p = b->pos; }