summaryrefslogtreecommitdiff
path: root/ext/ftp/ftp.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2011-11-01 15:15:51 +0000
committerRasmus Lerdorf <rasmus@php.net>2011-11-01 15:15:51 +0000
commitd2881adcbc9be60de7e7d45a3316b0e11b7eb1e8 (patch)
treee52c7b4c17765ebb6cdd574e64dbcfe90ad01122 /ext/ftp/ftp.c
parent9b0d73af1d8a59f48336bc60513f44edd4d4c34d (diff)
downloadphp-git-d2881adcbc9be60de7e7d45a3316b0e11b7eb1e8.tar.gz
Fix bug 60183
Diffstat (limited to 'ext/ftp/ftp.c')
-rw-r--r--ext/ftp/ftp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c
index 2ace44c8b7..d925c72f62 100644
--- a/ext/ftp/ftp.c
+++ b/ext/ftp/ftp.c
@@ -1122,6 +1122,9 @@ ftp_putcmd(ftpbuf_t *ftp, const char *cmd, const char *args)
data = ftp->outbuf;
+ /* Clear the extra-lines buffer */
+ ftp->extra = NULL;
+
if (my_send(ftp, ftp->fd, data, size) != size) {
return 0;
}