summaryrefslogtreecommitdiff
path: root/ext/ftp
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
commit09f8573a77e498348a405054b5c28bcecbb0a26f (patch)
tree6727fabf7c23a419506312445307f54673e67567 /ext/ftp
parent6972b94ae5e4a5f9617bfc3a569648eabd251ad4 (diff)
downloadphp-git-09f8573a77e498348a405054b5c28bcecbb0a26f.tar.gz
Fix bug 60183
Diffstat (limited to 'ext/ftp')
-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;
}