summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tools/sss_groupshow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/sss_groupshow.c b/src/tools/sss_groupshow.c
index 084da21b9..213372031 100644
--- a/src/tools/sss_groupshow.c
+++ b/src/tools/sss_groupshow.c
@@ -595,11 +595,13 @@ static void group_show_trim_memberof_done(struct tevent_req *subreq)
const char *, state->ndirect+2);
if (!state->direct) {
tevent_req_error(req, ENOMEM);
+ return;
}
state->direct[state->ndirect] = talloc_strdup(state->direct, name);
if (!state->direct[state->ndirect]) {
tevent_req_error(req, ENOMEM);
+ return;
}
state->direct[state->ndirect+1] = NULL;