ftp: fix flush control connection input
authorLukasz Marek <lukasz.m.luki@gmail.com>
Sun, 2 Jun 2013 00:22:46 +0000 (02:22 +0200)
committerLukasz Marek <lukasz.m.luki@gmail.com>
Sat, 8 Jun 2013 01:54:55 +0000 (03:54 +0200)
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
libavformat/ftp.c

index e818b8b..f730c6d 100644 (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;