mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-04 04:58:21 +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;
|
return -ENODATA;
|
||||||
else if (r < 0)
|
else if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
else if (!s)
|
||||||
|
return -ENODATA;
|
||||||
|
|
||||||
*llmnr = s;
|
*llmnr = s;
|
||||||
s = NULL;
|
s = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user