From 43eda88200a7a60cba8948feb516f0785c193806 Mon Sep 17 00:00:00 2001 From: Lukasz Marek Date: Sun, 2 Jun 2013 02:22:46 +0200 Subject: [PATCH] ftp: fix flush control connection input Signed-off-by: Lukasz Marek --- libavformat/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/ftp.c b/libavformat/ftp.c index e818b8b757..f730c6d00c 100644 --- a/libavformat/ftp.c +++ b/libavformat/ftp.c @@ -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;