diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-01-19 18:36:52 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-01-19 21:56:54 +0100 |
commit | a7f6e7e8474a29a8fb50d9bd8835e2d42b1c1a3c (patch) | |
tree | ef0044601cfa9a0584a9a941ba4bfedb13be4fb9 | |
parent | fdb90ac6a6f3320a33104951e0c8505df901cc4f (diff) |
networkd: sd_bus_path_decode() returns 0, if the prefix doesn't match
-rw-r--r-- | src/network/networkd-link-bus.c | 2 |
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); |