sd-bus: properly handle removals of non-existing matches

This commit is contained in:
Lennart Poettering 2014-10-29 17:58:43 +01:00
parent 793062063a
commit ef7b6c0190

View file

@ -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)
;
}