summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-01-19 18:36:52 +0100
committerLennart Poettering <lennart@poettering.net>2016-01-19 21:56:54 +0100
commita7f6e7e8474a29a8fb50d9bd8835e2d42b1c1a3c (patch)
treeef0044601cfa9a0584a9a941ba4bfedb13be4fb9 /src
parentfdb90ac6a6f3320a33104951e0c8505df901cc4f (diff)
networkd: sd_bus_path_decode() returns 0, if the prefix doesn't match
Diffstat (limited to 'src')
-rw-r--r--src/network/networkd-link-bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-link-bus.c b/src/network/networkd-link-bus.c
index 8a32aea905..4d6ac747fd 100644
--- a/src/network/networkd-link-bus.c
+++ b/src/network/networkd-link-bus.c
@@ -102,7 +102,7 @@ int link_object_find(sd_bus *bus, const char *path, const char *interface, void
assert(found);
r = sd_bus_path_decode(path, "/org/freedesktop/network1/link", &identifier);
- if (r < 0)
+ if (r <= 0)
return 0;
r = parse_ifindex(identifier, &ifindex);