summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-12-10 03:08:15 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-12-10 19:22:33 +0100
commit73cb66e832191041aeb31da5f2d88bf60580b5fa (patch)
treed8a86393e3547136b77bdd5ba4fd7ce24cb364ad
parent8914b982dd70e1a68d7b7fd55951b854ce9abc9b (diff)
downloadsssd-73cb66e832191041aeb31da5f2d88bf60580b5fa.tar.gz
sssd-73cb66e832191041aeb31da5f2d88bf60580b5fa.tar.bz2
sssd-73cb66e832191041aeb31da5f2d88bf60580b5fa.zip
PAC: check the return value of diff_git_lists
-rw-r--r--src/responder/pac/pacsrv_cmd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/responder/pac/pacsrv_cmd.c b/src/responder/pac/pacsrv_cmd.c
index 6b6a7a98..277cf4b1 100644
--- a/src/responder/pac/pacsrv_cmd.c
+++ b/src/responder/pac/pacsrv_cmd.c
@@ -245,6 +245,10 @@ static errno_t pac_add_user_next(struct pac_req_ctx *pr_ctx)
pr_ctx->gid_count, pr_ctx->gids,
&pr_ctx->add_gid_count, &pr_ctx->add_gids,
&pr_ctx->del_grp_count, &pr_ctx->del_grp_list);
+ if (ret != EOK) {
+ DEBUG(SSSDBG_OP_FAILURE, ("diff_gid_lists failed.\n"));
+ goto done;
+ }
req = pac_save_memberships_send(pr_ctx);
if (req == NULL) {