1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-27 07:22:31 +03:00

resolved: use right conditionalization when setting unicast ifindex on UDP sockets

This commit is contained in:
Lennart Poettering 2022-11-18 16:52:01 +01:00
parent b9e7f22c2d
commit 5faaed5b62

View File

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