mirror of
https://github.com/nginx/nginx.git
synced 2024-12-04 22:09:01 +08:00
Rejected forbidden transport parameters with TRANSPORT_PARAMETER_ERROR.
This commit is contained in:
parent
a4a641fa6c
commit
49d7ae444f
@ -1355,14 +1355,6 @@ ngx_quic_parse_transport_param(u_char *p, u_char *end, uint16_t id,
|
||||
{
|
||||
uint64_t varint;
|
||||
|
||||
switch (id) {
|
||||
case NGX_QUIC_TP_ORIGINAL_CONNECTION_ID:
|
||||
case NGX_QUIC_TP_STATELESS_RESET_TOKEN:
|
||||
case NGX_QUIC_TP_PREFERRED_ADDRESS:
|
||||
/* TODO: implement */
|
||||
return NGX_DECLINED;
|
||||
}
|
||||
|
||||
switch (id) {
|
||||
|
||||
case NGX_QUIC_TP_DISABLE_ACTIVE_MIGRATION:
|
||||
@ -1464,6 +1456,16 @@ ngx_quic_parse_transport_params(u_char *p, u_char *end, ngx_quic_tp_t *tp,
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
switch (id) {
|
||||
case NGX_QUIC_TP_ORIGINAL_CONNECTION_ID:
|
||||
case NGX_QUIC_TP_PREFERRED_ADDRESS:
|
||||
case NGX_QUIC_TP_STATELESS_RESET_TOKEN:
|
||||
ngx_log_error(NGX_LOG_INFO, log, 0,
|
||||
"quic client sent forbidden transport param"
|
||||
" id 0x%xi", id);
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
p = ngx_quic_parse_int(p, end, &len);
|
||||
if (p == NULL) {
|
||||
ngx_log_error(NGX_LOG_INFO, log, 0,
|
||||
|
Loading…
Reference in New Issue
Block a user