mirror of
https://github.com/genodelabs/genode.git
synced 2025-03-23 04:25:21 +00:00
init: consider lacking service name attribute
This patch makes init robust against invalid routing rules that lack a name attribute in the '<service>' node. This situation may occur when interactively editing routes in Sculpt.
This commit is contained in:
parent
8015dbe8b7
commit
538c3a6692
@ -64,7 +64,7 @@ namespace Init {
|
||||
bool const service_matches =
|
||||
service_node.has_type("any-service") ||
|
||||
(service_node.has_type("service") &&
|
||||
service_node.attribute("name").has_value(service_name.string()));
|
||||
service_node.attribute_value("name", Service::Name()) == service_name);
|
||||
|
||||
if (!service_matches)
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user