Skip to content

Commit 7091f03

Browse files
authored
ipc-rules: Only allow subscriptions for valid signal names (#2656)
1 parent 544427d commit 7091f03

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/ipc-rules/ipc-events.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ class ipc_rules_events_methods_t : public wf::per_output_tracker_mixin_t<>
153153
if (signal_map.count(sub))
154154
{
155155
subscribed_to.insert(sub);
156+
} else
157+
{
158+
return wf::ipc::json_error("Event not found: \"" + sub.as_string() + "\"");
156159
}
157160
}
158161
} else

0 commit comments

Comments
 (0)