chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cd666f
)
sd-network: when the LLMNR setting is not known for an interface consider that as...
author
Lennart Poettering
<lennart@poettering.net>
Mon, 4 Aug 2014 21:06:05 +0000
(23:06 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 4 Aug 2014 21:06:07 +0000
(23:06 +0200)
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.
src/network/sd-network.c
patch
|
blob
|
history
diff --git
a/src/network/sd-network.c
b/src/network/sd-network.c
index 260ca470d1142cf08df5e73da069910bbcc6ed02..ed02eccaf1002a85710f1d920186fbd9079697e2 100644
(file)
--- 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;