summaryrefslogtreecommitdiffstats
path: root/src/tools/tools_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/tools_util.c')
-rw-r--r--src/tools/tools_util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/tools_util.c b/src/tools/tools_util.c
index e76ffe76..96ca5843 100644
--- a/src/tools/tools_util.c
+++ b/src/tools/tools_util.c
@@ -139,6 +139,11 @@ int parse_group_name_domain(struct tools_ctx *tctx,
for (i = 0; groups[i]; ++i) {
ret = sss_parse_name(tctx, tctx->snctx, groups[i], &domain, &name);
+ if (ret != EOK) {
+ DEBUG(1, ("Invalid name in group list, skipping: [%s] (%d)\n",
+ groups[i], ret));
+ continue;
+ }
/* If FQDN is specified, it must be within the same domain as user */
if (domain) {