From: Maxime Henrion Date: Thu, 30 Apr 2026 14:47:20 +0000 (-0400) Subject: BUG/MINOR: quic: handle cases where we don't have an address X-Git-Tag: v3.4-dev11~88 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=55ba951f3d73214e0a4532029e6e4d2c9ec46c28;p=haproxy.git BUG/MINOR: quic: handle cases where we don't have an address It is possible to not have addresses in certain conditions, so we now also allow the address family to be AF_UNSPEC in quic_dgram_init(). No backport necessary since this code is not yet in a release. --- diff --git a/src/quic_sock.c b/src/quic_sock.c index 4620e612f..291a52153 100644 --- a/src/quic_sock.c +++ b/src/quic_sock.c @@ -267,7 +267,8 @@ static void quic_dgram_init(struct quic_dgram *dgram, struct sockaddr_storage *saddr, struct sockaddr_storage *daddr) { - BUG_ON_HOT(!is_inet_addr(saddr) || !is_inet_addr(daddr)); + BUG_ON_HOT(!is_inet_addr(saddr) || + (daddr->ss_family != AF_UNSPEC && !is_inet_addr(daddr))); dgram->obj_type = OBJ_TYPE_DGRAM; dgram->owner = owner;