aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/event/quic/ngx_event_quic_migration.c8
-rw-r--r--src/event/quic/ngx_event_quic_transport.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/event/quic/ngx_event_quic_migration.c b/src/event/quic/ngx_event_quic_migration.c
index efb167b0a..a6eaf4563 100644
--- a/src/event/quic/ngx_event_quic_migration.c
+++ b/src/event/quic/ngx_event_quic_migration.c
@@ -40,6 +40,14 @@ ngx_quic_handle_path_challenge_frame(ngx_connection_t *c,
ngx_quic_frame_t frame, *fp;
ngx_quic_connection_t *qc;
+ if (pkt->level != ssl_encryption_application || pkt->path_challenged) {
+ ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, 0,
+ "quic ignoring PATH_CHALLENGE");
+ return NGX_OK;
+ }
+
+ pkt->path_challenged = 1;
+
qc = ngx_quic_get_connection(c);
ngx_memzero(&frame, sizeof(ngx_quic_frame_t));
diff --git a/src/event/quic/ngx_event_quic_transport.h b/src/event/quic/ngx_event_quic_transport.h
index 02e44650b..232ff18d3 100644
--- a/src/event/quic/ngx_event_quic_transport.h
+++ b/src/event/quic/ngx_event_quic_transport.h
@@ -336,6 +336,7 @@ typedef struct {
unsigned retried:1;
unsigned first:1;
unsigned rebound:1;
+ unsigned path_challenged:1;
} ngx_quic_header_t;