summaryrefslogtreecommitdiff
path: root/ext/ftp/ftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ftp/ftp.c')
-rw-r--r--ext/ftp/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c
index 4a06f3c854..c196318552 100644
--- a/ext/ftp/ftp.c
+++ b/ext/ftp/ftp.c
@@ -1857,7 +1857,7 @@ data_accepted:
php_pollfd p;
int i;
- p.fd = ftp->fd;
+ p.fd = data->fd;
p.events = (err == SSL_ERROR_WANT_READ) ? (POLLIN|POLLPRI) : POLLOUT;
p.revents = 0;