]> git.ipfire.org Git - thirdparty/openssh-portable.git/commit
Only return events from ppoll that were requested.
authorDarren Tucker <dtucker@dtucker.net>
Fri, 1 Apr 2022 12:38:44 +0000 (23:38 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Fri, 1 Apr 2022 12:38:44 +0000 (23:38 +1100)
commit90452c8b69d065b7c7c285ff78b81418a75bcd76
treeb9c3161b07544b0e57118e87238754e33516f22b
parent6c49eb5fabc56f4865164ed818aa5112d09c31a8
Only return events from ppoll that were requested.

If the underlying system's select() returns bits that were not in the
request set, our ppoll() implementation can return revents for events
not requested, which can apparently cause a hang.  Only return revents
for activity in the requested event set.  bz#3416, analysis and fix by
yaroslav.kuzmin at vmssoftware com, ok djm@
openbsd-compat/bsd-poll.c