init: abort request on invalid route

Fixes #1423
This commit is contained in:
Christian Helmuth 2015-04-13 14:31:43 +02:00
parent c9272937e7
commit eee0bf5ab2
1 changed files with 3 additions and 1 deletions

View File

@ -659,8 +659,10 @@ class Init::Child : Genode::Child_policy
target.attribute("name").value(server_name, sizeof(server_name));
Genode::Server *server = _name_registry->lookup_server(server_name);
if (!server)
if (!server) {
PWRN("%s: invalid route to non-existing server \"%s\"", name(), server_name);
return 0;
}
service = _child_services->find(service_name, server);
if (service)