summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-10-29 17:58:43 +0100
committerLennart Poettering <lennart@poettering.net>2014-10-29 17:58:43 +0100
commitef7b6c0190fefaacf6d8f8e1a6dda4ba8b98091b (patch)
tree07fb6e3387e028da8f498a065207c231ab34a500
parent793062063a27039584e9a6f968007b1e5436fc03 (diff)
sd-bus: properly handle removals of non-existing matches
-rw-r--r--src/libsystemd/sd-bus/bus-match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-match.c b/src/libsystemd/sd-bus/bus-match.c
index 18afe0f12a..5658c61ba7 100644
--- a/src/libsystemd/sd-bus/bus-match.c
+++ b/src/libsystemd/sd-bus/bus-match.c
@@ -537,7 +537,7 @@ static int bus_match_find_compare_value(
else if (BUS_MATCH_CAN_HASH(t))
n = hashmap_get(c->compare.children, value_str);
else {
- for (n = c->child; !value_node_same(n, t, value_u8, value_str); n = n->next)
+ for (n = c->child; n && !value_node_same(n, t, value_u8, value_str); n = n->next)
;
}