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.
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;