]> git.kaiwu.me - nginx.git/commitdiff
QUIC: fixed permitted packet types for PATH_RESPONSE.
authorSergey Kandaurov <pluknet@nginx.com>
Fri, 16 Apr 2021 20:03:59 +0000 (23:03 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Fri, 16 Apr 2021 20:03:59 +0000 (23:03 +0300)
PATH_RESPONSE was explicitly forbidden in 0-RTT since at least draft-22, but
the Frame Types table was not updated until recently while in IESG evaluation.

src/event/quic/ngx_event_quic_transport.c

index 0d84546ebc71c297474f3fb5961a7a027528f478..2524223d692a05e5de9de37daf5a652f54b5a0c0 100644 (file)
@@ -1137,7 +1137,7 @@ ngx_quic_frame_allowed(ngx_quic_header_t *pkt, ngx_uint_t frame_type)
          /* NEW_CONNECTION_ID */     0x3,
          /* RETIRE_CONNECTION_ID */  0x3,
          /* PATH_CHALLENGE */        0x3,
-         /* PATH_RESPONSE */         0x3,
+         /* PATH_RESPONSE */         0x1,
          /* CONNECTION_CLOSE */      0xF,
          /* CONNECTION_CLOSE2 */     0x3,
          /* HANDSHAKE_DONE */        0x0, /* only sent by server */