mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
sd-network: when the LLMNR setting is not known for an interface consider that as ENODATA
ENODATA should be returned whenever we have no idea about something. A missing LLMNR setting can only really happen during upgrades, in whichc ase we really have no idea, so let's turn this into another ENODATA case.
This commit is contained in:
parent
2cd666f8c9
commit
b3df0b34c1
@ -122,6 +122,8 @@ _public_ int sd_network_get_llmnr(int ifindex, char **llmnr) {
|
||||
return -ENODATA;
|
||||
else if (r < 0)
|
||||
return r;
|
||||
else if (!s)
|
||||
return -ENODATA;
|
||||
|
||||
*llmnr = s;
|
||||
s = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user