Skip to content

Commit

Permalink
kill child process after SSH connection failure
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Nov 25, 2024
1 parent 735cd89 commit c8692f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/wolfsshd/wolfsshd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1498,6 +1498,8 @@ static int SHELL_Subsystem(WOLFSSHD_CONNECTION* conn, WOLFSSH* ssh,
continue;
}
else if (rc != WS_WANT_READ) {
/* unexpected error, kill off child process */
kill(childPid, SIGKILL);
break;
}
}
Expand Down

0 comments on commit c8692f7

Please sign in to comment.