pack pollfd array before server_accept_loop() ppoll() call,
authordjm <djm@openbsd.org>
Tue, 1 Mar 2022 01:59:19 +0000 (01:59 +0000)
committerdjm <djm@openbsd.org>
Tue, 1 Mar 2022 01:59:19 +0000 (01:59 +0000)
commit2bd89b689a17307d5684e811d5b5730ce8ede4f8
tree2c14820cd1674bb68e02ed9f39bf1054d711320e
parent805ea040149ef137c7670b983c0b08243df8ca2b
pack pollfd array before server_accept_loop() ppoll() call,
and terminate sshd if ppoll() returns errno==EINVAL

avoids spin in ppoll when MaxStartups > RLIMIT_NOFILE, reported by
Daniel Micay

feedback/ok deraadt
usr.bin/ssh/sshd.c