summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-06 19:29:46 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-06 19:29:46 +0100
commit78102717ae3fc2bc677d5caeb54547350f44df59 (patch)
tree20cc6cc68cf29e2c190ed001af7517f61a502ce9
parent52dde8d541a85ca740f3d005c5eec35f59629fea (diff)
connman agent - handle theoretical missing requirement and name strings
fix CID 1076319
-rw-r--r--src/modules/connman/agent.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/modules/connman/agent.c b/src/modules/connman/agent.c
index 1c38600..fa188f9 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,
438 "\tAlternates: (omit array)\n" 438 "\tAlternates: (omit array)\n"
439 "\tValue: %s", 439 "\tValue: %s",
440 field.name, field.type, field.requirement, field.value); 440 field.name, field.type, field.requirement, field.value);
441 441 if (!field.requirement)
442 _dialog_field_add(agent, &field); 442 {
443 ERR("Field '%s' missing requirement string", field.name);
444 }
445 else if (!field.name)
446 {
447 ERR("Field missing name string");
448 }
449 else _dialog_field_add(agent, &field);
443 } 450 }
444 451
445 return NULL; 452 return NULL;