]> git.kaiwu.me - nginx.git/commitdiff
QUIC: removed Firefox workaround for trailing zeroes in datagrams.
authorSergey Kandaurov <pluknet@nginx.com>
Thu, 9 Sep 2021 16:12:27 +0000 (19:12 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Thu, 9 Sep 2021 16:12:27 +0000 (19:12 +0300)
This became unnecessary after discarding invalid packets since a6784cf32c13.

src/event/quic/ngx_event_quic.c

index 076e194222f60cd33df8a803c29ce35dba6b21f1..478fc8461f9998b7a3e444aebf9c8d7863030ab9 100644 (file)
@@ -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;
     }