Skip to content

Commit 3b09123

Browse files
tsoftware-orgnikic
authored andcommitted
Fix FTPS passive mode of data channel event poll
Bugfix: when using passive mode of FTPS protocol, data channel events should be polled when creating data connection channel, instead of polling the event of ftp's self control channel, which may cause ftp transfer problem while using ftps and passive mode.
1 parent e27301c commit 3b09123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/ftp/ftp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1859,7 +1859,7 @@ data_accept(databuf_t *data, ftpbuf_t *ftp)
18591859
php_pollfd p;
18601860
int i;
18611861

1862-
p.fd = ftp->fd;
1862+
p.fd = data->fd;
18631863
p.events = (err == SSL_ERROR_WANT_READ) ? (POLLIN|POLLPRI) : POLLOUT;
18641864
p.revents = 0;
18651865

0 commit comments

Comments
 (0)