diff options
| author | Vladimir Homutov <vl@nginx.com> | 2020-04-30 12:22:35 +0300 |
|---|---|---|
| committer | Vladimir Homutov <vl@nginx.com> | 2020-04-30 12:22:35 +0300 |
| commit | 5e5c703656a93b6b6413bdbe72043c863fb5f224 (patch) | |
| tree | 363a22e066b8fa395940ed7d7af2b21c64981f5a | |
| parent | 1a6fc01fb853052536b49cbb4fe612c8ac4467ab (diff) | |
| download | nginx-5e5c703656a93b6b6413bdbe72043c863fb5f224.tar.gz nginx-5e5c703656a93b6b6413bdbe72043c863fb5f224.tar.bz2 | |
Store clearflags in pkt->flags after decryption.
It doesn't make sense to store protected flags.
| -rw-r--r-- | src/event/ngx_event_quic_protection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/event/ngx_event_quic_protection.c b/src/event/ngx_event_quic_protection.c index d5afaefc1..354d4f9fa 100644 --- a/src/event/ngx_event_quic_protection.c +++ b/src/event/ngx_event_quic_protection.c @@ -1015,6 +1015,7 @@ ngx_quic_decrypt(ngx_quic_header_t *pkt, ngx_ssl_conn_t *ssl_conn, pn = ngx_quic_parse_pn(&p, pnl, &mask[1], largest_pn); pkt->pn = pn; + pkt->flags = clearflags; #ifdef NGX_QUIC_DEBUG_CRYPTO ngx_quic_hexdump(pkt->log, "quic mask", mask, 5); |
