aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2020-10-05 13:02:38 +0100
committerSergey Kandaurov <pluknet@nginx.com>2020-10-05 13:02:38 +0100
commit3309b1e8dfd88af0bcadc98b14ac65349d8aa61c (patch)
treec65ac17eb7de0905fff1f2ef2b693b01c4c5928e /src
parent4ed768d3d12fd875af3801a0958aed514bb7b19d (diff)
downloadnginx-3309b1e8dfd88af0bcadc98b14ac65349d8aa61c.tar.gz
nginx-3309b1e8dfd88af0bcadc98b14ac65349d8aa61c.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/event/ngx_event_quic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c
index ed7922909..0c32be355 100644
--- 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, ngx_quic_send_ctx_t *ctx,
p += len;
f->pnum = ctx->pnum;
f->last = now;
+ f->plen = 0;
}
out.len = p - out.data;