Commit 43eda882 authored by Lukasz Marek's avatar Lukasz Marek

ftp: fix flush control connection input

Signed-off-by: 's avatarLukasz Marek <lukasz.m.luki@gmail.com>
parent 23a76b71
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment