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:
parent
b9e7f22c2d
commit
5faaed5b62
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user