From f3cddbb8315ead053053d4d067cac7e6c7f85530 Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Sat, 2 Dec 2023 14:29:10 +0100 Subject: [PATCH] Remove redundant assignments to ftp->data ftp_getdata() already does this. Closes GH-12849. --- ext/ftp/ftp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 748e1291e6d..ab955b7e56d 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -898,8 +898,6 @@ ftp_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, const size_t pat goto bail; } - ftp->data = data; - if (resumepos > 0) { int arg_len = snprintf(arg, sizeof(arg), ZEND_LONG_FMT, resumepos); @@ -993,7 +991,6 @@ ftp_put(ftpbuf_t *ftp, const char *path, const size_t path_len, php_stream *inst if ((data = ftp_getdata(ftp)) == NULL) { goto bail; } - ftp->data = data; if (startpos > 0) { int arg_len = snprintf(arg, sizeof(arg), ZEND_LONG_FMT, startpos);