mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02: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
@ -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…
x
Reference in New Issue
Block a user