mirror of
https://github.com/systemd/systemd.git
synced 2026-07-17 13:00:35 +00:00
bus: fix parsing of matches against empty strings
This commit is contained in:
@@ -755,6 +755,14 @@ int bus_match_parse(
|
||||
escaped = false;
|
||||
}
|
||||
|
||||
if (!value) {
|
||||
value = strdup("");
|
||||
if (!value) {
|
||||
r = -ENOMEM;
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
||||
if (t == BUS_MATCH_MESSAGE_TYPE) {
|
||||
r = bus_message_type_from_string(value, &u);
|
||||
if (r < 0)
|
||||
|
||||
Reference in New Issue
Block a user