diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/resolve/resolved-dns-stream.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-stream.c b/src/resolve/resolved-dns-stream.c index c3e825abf4..e57af66221 100644 --- a/src/resolve/resolved-dns-stream.c +++ b/src/resolve/resolved-dns-stream.c @@ -1,5 +1,6 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#include <linux/if_arp.h> #include <netinet/tcp.h> #include <unistd.h> @@ -568,7 +569,7 @@ int dns_stream_new( if (tfo_address) { s->tfo_address = *tfo_address; - s->tfo_salen = tfo_address->sa.sa_family == AF_INET6 ? sizeof(tfo_address->in6) : sizeof(tfo_address->in); + s->tfo_salen = SOCKADDR_LEN(*tfo_address); } *ret = TAKE_PTR(s); |