Skip to content

Commit

Permalink
SELINUX_CHILD: 'ret' argument of prepare_response() is always 0
Browse files Browse the repository at this point in the history
both in current and pre- sssd-2.10.1 code. Let's make it explicit.
  • Loading branch information
alexey-tikhonov committed Dec 12, 2024
1 parent 8858fcd commit 8e6084e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/ipa/selinux_child.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ int main(int argc, const char *argv[])

sss_log_process_caps("Sending response");

ret = prepare_response(main_ctx, ret, &resp);
ret = prepare_response(main_ctx, EOK, &resp);
if (ret != EOK) {
DEBUG(SSSDBG_CRIT_FAILURE, "Failed to prepare response buffer.\n");
goto fail;
Expand Down

0 comments on commit 8e6084e

Please sign in to comment.