Files
libssh/src
Jakub Jelen 4e56c5c956 poll: Avoid passing other events to callbacks when called recursively
Some architectures (s390x) provide different poll events such as POLLHUP in case
the remote end closed the connection (and they keep reporting this forever).

This is an issue when the user provided callback registering this event as an
error and tries to send some reply (for example EOF) using
`ssh_channel_send_eof()` which will lead to infinite recursion and sefgaults.

This was not solved by the 30b5a2e33b because the
POLLHUP event is not provided by the poll in events bitfield, but only reported
by the poll in revents bit field thus we need to filter these events later on
when the poll is recursively.

Fixes #202

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2023-09-13 14:10:30 +02:00
..
2022-07-02 07:04:48 +02:00
2023-05-04 16:55:17 +02:00
2019-12-09 16:08:03 +01:00
2023-08-25 15:13:31 +02:00
2023-02-02 14:49:06 +01:00
2023-08-02 15:37:17 +02:00
2023-02-02 14:49:06 +01:00
2022-10-07 09:13:19 +02:00
2023-01-09 22:40:10 +01:00
2022-11-23 15:29:29 +01:00
2022-09-07 14:37:29 +02:00
2023-02-02 14:49:06 +01:00
2023-02-02 14:49:06 +01:00
2023-02-02 14:49:06 +01:00
2023-06-02 13:41:54 +02:00
2022-06-15 14:47:06 +02:00
2023-04-28 10:58:11 +02:00
2023-08-22 14:22:14 +02:00
2023-08-02 15:37:17 +02:00
2023-07-11 17:45:31 +02:00
2023-05-09 09:07:16 +02:00
2022-05-10 12:39:26 +02:00
2023-02-02 14:49:06 +01:00
2023-02-02 14:49:06 +01:00
2023-06-28 12:22:27 +02:00
2023-08-02 15:37:17 +02:00
2023-05-04 11:51:17 +02:00