diff --git a/src/quic_conn.c b/src/quic_conn.c index dd748945f4..4edd5f9e00 100644 --- a/src/quic_conn.c +++ b/src/quic_conn.c @@ -6089,7 +6089,7 @@ static int quic_rx_pkt_parse(struct quic_rx_packet *pkt, struct proxy *prx; struct quic_counters *prx_counters; int long_header = 0; - uint32_t version; + uint32_t version = 0; const struct quic_version *qv = NULL; TRACE_ENTER(QUIC_EV_CONN_LPKT); diff --git a/src/quic_tp.c b/src/quic_tp.c index 50fca0cde8..78c456ae48 100644 --- a/src/quic_tp.c +++ b/src/quic_tp.c @@ -584,12 +584,11 @@ static int quic_transport_params_decode(struct quic_transport_params *p, int ser const unsigned char *end) { const unsigned char *pos; + uint64_t type, len = 0; pos = buf; while (pos != end) { - uint64_t type, len; - if (!quic_transport_param_decode_type_len(&type, &len, &pos, end)) return 0;