changeset 8572:3bde57a0e6ce quic

QUIC: zero out packet length in frames prior to send. 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.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 05 Oct 2020 13:02:38 +0100
parents a0631204d88a
children 6226f834b420
files src/event/ngx_event_quic.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/event/ngx_event_quic.c
+++ b/src/event/ngx_event_quic.c
@@ -3840,6 +3840,7 @@ ngx_quic_send_frames(ngx_connection_t *c
         p += len;
         f->pnum = ctx->pnum;
         f->last = now;
+        f->plen = 0;
     }
 
     out.len = p - out.data;