mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-04 07:48:36 +00:00
sd-bus: don't access invalid memory if a signal matcher was freed from its own callback
This commit is contained in:
@@ -293,6 +293,9 @@ int bus_match_run(
|
||||
r = bus_maybe_reply_error(m, r, &error_buffer);
|
||||
if (r != 0)
|
||||
return r;
|
||||
|
||||
if (bus && bus->match_callbacks_modified)
|
||||
return 0;
|
||||
}
|
||||
|
||||
return bus_match_run(bus, node->next, m);
|
||||
|
||||
Reference in New Issue
Block a user