mirror of
https://github.com/nginx/nginx.git
synced 2026-08-03 22:33:10 +00:00
Close connection with PROTOCOL_VIOLATION on decryption failure.
A previously used undefined error code is now replaced with the generic one. Note that quic-transport prescribes keeping connection intact, discarding such QUIC packets individually, in the sense that coalesced packets could be there. This is selectively handled in the next change.
This commit is contained in:
parent
82519e1af2
commit
d7baead1e8
1 changed files with 2 additions and 2 deletions
|
|
@ -1050,7 +1050,7 @@ ngx_quic_decrypt(ngx_quic_header_t *pkt, ngx_ssl_conn_t *ssl_conn,
|
|||
if (ngx_quic_tls_hp(pkt->log, ciphers.hp, secret, mask, sample)
|
||||
!= NGX_OK)
|
||||
{
|
||||
pkt->error = NGX_QUIC_ERR_CRYPTO_ERROR;
|
||||
pkt->error = NGX_QUIC_ERR_PROTOCOL_VIOLATION;
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
|
|
@ -1130,7 +1130,7 @@ ngx_quic_decrypt(ngx_quic_header_t *pkt, ngx_ssl_conn_t *ssl_conn,
|
|||
#endif
|
||||
|
||||
if (rc != NGX_OK) {
|
||||
pkt->error = NGX_QUIC_ERR_CRYPTO_ERROR;
|
||||
pkt->error = NGX_QUIC_ERR_PROTOCOL_VIOLATION;
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue