Skip to content

Commit

Permalink
fixup! credential: kill helper after 5 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
derrickstolee committed Aug 17, 2023
1 parent 59c38f0 commit f27b3af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion credential.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ static int run_credential_helper(struct credential *c,

select(1, &readfds, NULL, NULL, &select_timeout);

if (!FD_ISSET(&readfds, helper.out)) {
if (!FD_ISSET(helper.out, &readfds)) {
/* Timeout complete before helper.out has bytes to read. */
kill_child_command(&helper);
return -1;
Expand Down

0 comments on commit f27b3af

Please sign in to comment.