ftp: fix flush control connection input

Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
This commit is contained in:
Lukasz Marek 2013-06-02 02:22:46 +02:00
parent 23a76b71de
commit 43eda88200
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ static int ftp_flush_control_input(FTPContext *s)
s->conn_control_block_flag = 1;
do {
err = ftp_get_line(s, buf, sizeof(buf));
} while (err > 0);
} while (!err);
s->conn_control_block_flag = ori_block_flag;