Avoid kill with -1 argument.
authordtucker <dtucker@openbsd.org>
Fri, 27 May 2022 04:27:49 +0000 (04:27 +0000)
committerdtucker <dtucker@openbsd.org>
Fri, 27 May 2022 04:27:49 +0000 (04:27 +0000)
commitdca1b0d0e7409f6a473a92cd039ccc31b15056ce
tree1bb16b57da3c3b9aeb18a8536c0a41f4eefb0f7c
parent018fc1f2fa15223385e362fae030f158140c6d1c
Avoid kill with -1 argument.
The out_ctx label can be reached before fork has been called. If this
happens, then kill -1 would be called, sending SIGTERM to all processes
reachable by the current process.

From tobias@ and c3h2_ctf via github PR#286, ok djm@
usr.bin/ssh/readpass.c