Store clearflags in pkt->flags after decryption.

It doesn't make sense to store protected flags.
This commit is contained in:
Vladimir Homutov 2020-04-30 12:22:35 +03:00
parent 1a6fc01fb8
commit 5e5c703656

View File

@ -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);