summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-04 23:06:05 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-04 23:06:07 +0200
commitb3df0b34c14ffdaf8f2d72c08ff59da14cd6f7d7 (patch)
tree27ef52e827d6116c62773eee137cfb0ddaef4394
parent2cd666f8c93d2fc27566bd16f21fba1043735729 (diff)
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.
-rw-r--r--src/network/sd-network.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/sd-network.c b/src/network/sd-network.c
index 260ca470d1..ed02eccaf1 100644
--- a/src/network/sd-network.c
+++ b/src/network/sd-network.c
@@ -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;