]> git.kaiwu.me - nginx.git/commitdiff
QUIC: zero out packet length in frames prior to send.
authorSergey Kandaurov <pluknet@nginx.com>
Mon, 5 Oct 2020 12:02:38 +0000 (13:02 +0100)
committerSergey Kandaurov <pluknet@nginx.com>
Mon, 5 Oct 2020 12:02:38 +0000 (13:02 +0100)
It could be that a frame was previously sent and may have stale information.
This was previously broken by merging frames on resend in b383120afca3.

src/event/ngx_event_quic.c

index ed792290913ed418fe448913dadb7027a7d18e7c..0c32be355365cd8d12ee658f6aed5ea9bee61e8f 100644 (file)
@@ -3840,6 +3840,7 @@ ngx_quic_send_frames(ngx_connection_t *c, ngx_quic_send_ctx_t *ctx,
         p += len;
         f->pnum = ctx->pnum;
         f->last = now;
+        f->plen = 0;
     }
 
     out.len = p - out.data;