]> git.ipfire.org Git - thirdparty/curl.git/commit
cf-socket: fix pollset for listening
authorStefan Eissing <stefan@eissing.org>
Tue, 3 Sep 2024 07:54:59 +0000 (09:54 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 3 Sep 2024 14:29:08 +0000 (16:29 +0200)
commita07ba37b5e88a89bf4bcc6b0c927f7a42d7ea4f2
tree9bc44acd6d34c2efabffa8409a91d7619fb10dfa
parent81a33428773bac7bb02c56278d4be8c17a40dbfe
cf-socket: fix pollset for listening

When FTP does an active data connection, the socket connection
filter is instantiated with a listening socket. When the filter
adjusts its pollset, it needs to POLLIN, not OUT.

Bug: https://curl.se/mail/lib-2024-08/0023.html
Reported-by: Yoshimasa Ohno
Closes #14766
lib/cf-socket.c