mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-22 01:10:38 -05:00
MINOR: quic: remove unnecessary if in qc_pkt_may_rm_hp()
Remove the shortcut to use the INITIAL encryption level when removing header protection on first connection packet. This change is useful for the following change which removes ssl_sock_ctx in argument lists in favor of the quic_conn instance.
This commit is contained in:
parent
7ca7c84fb8
commit
741eacca47
1 changed files with 0 additions and 6 deletions
|
|
@ -3482,12 +3482,6 @@ static int qc_pkt_may_rm_hp(struct quic_rx_packet *pkt,
|
|||
{
|
||||
enum quic_tls_enc_level tel;
|
||||
|
||||
/* Special case without connection context (first Initial packets) */
|
||||
if (!ctx) {
|
||||
*qel = &qc->els[QUIC_TLS_ENC_LEVEL_INITIAL];
|
||||
return 1;
|
||||
}
|
||||
|
||||
tel = quic_packet_type_enc_level(pkt->type);
|
||||
if (tel == QUIC_TLS_ENC_LEVEL_NONE) {
|
||||
*qel = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue