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.
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;
}
#endif
if (rc != NGX_OK) {
- pkt->error = NGX_QUIC_ERR_CRYPTO_ERROR;
+ pkt->error = NGX_QUIC_ERR_PROTOCOL_VIOLATION;
return rc;
}