raster pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=78102717ae3fc2bc677d5caeb54547350f44df59
commit 78102717ae3fc2bc677d5caeb54547350f44df59 Author: Carsten Haitzler (Rasterman) <[email protected]> Date: Tue Aug 6 19:29:46 2019 +0100 connman agent - handle theoretical missing requirement and name strings fix CID 1076319 --- src/modules/connman/agent.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/modules/connman/agent.c b/src/modules/connman/agent.c index 1c38600d9..fa188f969 100644 --- a/src/modules/connman/agent.c +++ b/src/modules/connman/agent.c @@ -438,8 +438,15 @@ _agent_request_input(const Eldbus_Service_Interface *iface, "\tAlternates: (omit array)\n" "\tValue: %s", field.name, field.type, field.requirement, field.value); - - _dialog_field_add(agent, &field); + if (!field.requirement) + { + ERR("Field '%s' missing requirement string", field.name); + } + else if (!field.name) + { + ERR("Field missing name string"); + } + else _dialog_field_add(agent, &field); } return NULL; --
