diff options
| author | Sergey Kandaurov <pluknet@nginx.com> | 2020-06-05 13:20:02 +0300 |
|---|---|---|
| committer | Sergey Kandaurov <pluknet@nginx.com> | 2020-06-05 13:20:02 +0300 |
| commit | d047ecee95da4d80508f7b47f21bc46f2060f88c (patch) | |
| tree | 3f6501e64546d3a3320655451c9b3e3f2505c558 | |
| parent | c0003539ac767ec9d16e54d26b5296a6669d0089 (diff) | |
| download | nginx-d047ecee95da4d80508f7b47f21bc46f2060f88c.tar.gz nginx-d047ecee95da4d80508f7b47f21bc46f2060f88c.tar.bz2 | |
Treat receipt of NEW_TOKEN as connection error PROTOCOL_VIOLATION.
| -rw-r--r-- | src/event/ngx_event_quic.c | 1 | ||||
| -rw-r--r-- | src/event/ngx_event_quic_transport.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c index 2b226a3eb..376d1756b 100644 --- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -1948,7 +1948,6 @@ ngx_quic_payload_handler(ngx_connection_t *c, ngx_quic_header_t *pkt) case NGX_QUIC_FT_NEW_CONNECTION_ID: case NGX_QUIC_FT_RETIRE_CONNECTION_ID: - case NGX_QUIC_FT_NEW_TOKEN: case NGX_QUIC_FT_RESET_STREAM: case NGX_QUIC_FT_STOP_SENDING: case NGX_QUIC_FT_PATH_CHALLENGE: diff --git a/src/event/ngx_event_quic_transport.c b/src/event/ngx_event_quic_transport.c index e056e23de..32fcb5a66 100644 --- a/src/event/ngx_event_quic_transport.c +++ b/src/event/ngx_event_quic_transport.c @@ -1048,7 +1048,7 @@ ngx_quic_frame_allowed(ngx_quic_header_t *pkt, ngx_uint_t frame_type) /* RESET_STREAM */ 0x3, /* STOP_SENDING */ 0x3, /* CRYPTO */ 0xD, - /* NEW_TOKEN */ 0x1, + /* NEW_TOKEN */ 0x0, /* only sent by server */ /* STREAM0 */ 0x3, /* STREAM1 */ 0x3, /* STREAM2 */ 0x3, |
