diff options
Diffstat (limited to 'ext/ftp/ftp.c')
| -rw-r--r-- | ext/ftp/ftp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index e2da804663..db047110e0 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -449,7 +449,7 @@ ftp_type(ftpbuf_t *ftp, ftptype_t type) if (ftp == NULL) return 0; - if (type == ftp->type) + if (type == Z_TYPE_P(ftp)) return 1; if (type == FTPTYPE_ASCII) @@ -464,7 +464,7 @@ ftp_type(ftpbuf_t *ftp, ftptype_t type) if (!ftp_getresp(ftp) || ftp->resp != 200) return 0; - ftp->type = type; + Z_TYPE_P(ftp) = type; return 1; } @@ -1060,7 +1060,7 @@ ftp_getdata(ftpbuf_t *ftp) } data->listener = -1; data->fd = -1; - data->type = ftp->type; + Z_TYPE_P(data) = Z_TYPE_P(ftp); /* bind/listen */ if ((fd = socket(PF_INET, SOCK_STREAM, 0)) == -1) { |
