Mercurial > hg > nginx-quic
diff src/event/ngx_event_quic_protection.c @ 7717:c217a907ce42 quic
Added checks for permitted frame types.
+ cleanup in macros for packet types
+ some style fixes in quic_transport.h (case, indentation)
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Fri, 20 Mar 2020 20:03:44 +0300 |
parents | ae35ccba7aa6 |
children | d45325e90221 |
line wrap: on
line diff
--- a/src/event/ngx_event_quic_protection.c +++ b/src/event/ngx_event_quic_protection.c @@ -904,7 +904,7 @@ ngx_quic_decrypt(ngx_pool_t *pool, ngx_s return NGX_ERROR; } - if (pkt->flags & NGX_QUIC_PKT_LONG) { + if (ngx_quic_long_pkt(pkt->flags)) { clearflags = pkt->flags ^ (mask[0] & 0x0f); } else { @@ -926,7 +926,7 @@ ngx_quic_decrypt(ngx_pool_t *pool, ngx_s in.data = p; - if (pkt->flags & NGX_QUIC_PKT_LONG) { + if (ngx_quic_long_pkt(pkt->flags)) { in.len = pkt->len - pnl; } else {