diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-11-18 16:52:01 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-11-18 16:53:31 +0100 |
commit | 5faaed5b62d5ed88d8df2802c5ab4d3ab2eb755a (patch) | |
tree | d9925550f93f9f5db4ac6f7f9fc13a86c2062d15 /src/resolve | |
parent | nspawn: allow sched_rr_get_interval_time64 through seccomp filter (diff) | |
download | systemd-5faaed5b62d5ed88d8df2802c5ab4d3ab2eb755a.tar.xz systemd-5faaed5b62d5ed88d8df2802c5ab4d3ab2eb755a.zip |
resolved: use right conditionalization when setting unicast ifindex on UDP sockets
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/resolved-dns-scope.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-scope.c b/src/resolve/resolved-dns-scope.c index 852829569d..4f744499aa 100644 --- a/src/resolve/resolved-dns-scope.c +++ b/src/resolve/resolved-dns-scope.c @@ -424,7 +424,7 @@ static int dns_scope_socket( return r; } - if (s->link) { + if (ifindex != 0) { r = socket_set_unicast_if(fd, sa.sa.sa_family, ifindex); if (r < 0) return r; |