mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 21:51:37 +00:00
sd-bus: properly handle removals of non-existing matches
(cherry picked from commit ef7b6c0190)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
6bb37d22af
commit
8207682d7a
@@ -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)
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user