mirror of
https://github.com/nginx/nginx.git
synced 2025-07-31 18:46:15 +08:00
QUIC: Check if CID has been used in stateless reset check
Section 10.3.1 of RFC9000 requires this check.
This commit is contained in:
parent
010f974e44
commit
5e37df0bf4
@ -370,8 +370,11 @@ ngx_quic_process_stateless_reset(ngx_connection_t *c, ngx_quic_header_t *pkt)
|
|||||||
{
|
{
|
||||||
cid = ngx_queue_data(q, ngx_quic_client_id_t, queue);
|
cid = ngx_queue_data(q, ngx_quic_client_id_t, queue);
|
||||||
|
|
||||||
if (cid->seqnum == 0) {
|
if (cid->seqnum == 0 || cid->refcnt == 0) {
|
||||||
/* no stateless reset token in initial connection id */
|
/*
|
||||||
|
* No stateless reset token in initial connection id.
|
||||||
|
* Don't accept a token from an unused connection id.
|
||||||
|
*/
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user