mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
CLEAUNUP: quic: Usage of a useless variable in qc_treat_rx_pkts()
The usage of a <drop> variable is unnecessary here.
This commit is contained in:
parent
8ba4276d13
commit
c4b93ea57d
@ -2468,13 +2468,7 @@ int qc_treat_rx_pkts(struct quic_enc_level *el, struct quic_conn_ctx *ctx)
|
|||||||
QUIC_EV_CONN_ELRXPKTS, ctx->conn, pkt);
|
QUIC_EV_CONN_ELRXPKTS, ctx->conn, pkt);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
int drop;
|
if (!qc_parse_pkt_frms(pkt, ctx, el)) {
|
||||||
|
|
||||||
drop = 0;
|
|
||||||
if (!qc_parse_pkt_frms(pkt, ctx, el))
|
|
||||||
drop = 1;
|
|
||||||
|
|
||||||
if (drop) {
|
|
||||||
/* Drop the packet */
|
/* Drop the packet */
|
||||||
TRACE_PROTO("packet parsing failed -> dropped",
|
TRACE_PROTO("packet parsing failed -> dropped",
|
||||||
QUIC_EV_CONN_ELRXPKTS, ctx->conn, pkt);
|
QUIC_EV_CONN_ELRXPKTS, ctx->conn, pkt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user