mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-25 02:32:14 -04:00
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.
This commit is contained in:
parent
cc231f3468
commit
55ba951f3d
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue