aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/event/ngx_event_quic.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c
index ebb9b24af..b96af808d 100644
--- a/src/event/ngx_event_quic.c
+++ b/src/event/ngx_event_quic.c
@@ -531,6 +531,12 @@ ngx_quic_new_connection(ngx_connection_t *c, ngx_ssl_t *ssl, ngx_quic_tp_t *tp,
return NGX_ERROR;
}
+ if (pkt->pn != 0) {
+ ngx_log_error(NGX_LOG_INFO, c->log, 0,
+ "invalid initial packet number %L", pkt->pn);
+ return NGX_ERROR;
+ }
+
if (ngx_quic_init_connection(c) != NGX_OK) {
return NGX_ERROR;
}