summaryrefslogtreecommitdiff
path: root/libavformat/ftp.c
diff options
context:
space:
mode:
authorLukasz Marek <lukasz.m.luki@gmail.com>2013-06-08 03:34:56 +0200
committerLukasz Marek <lukasz.m.luki@gmail.com>2013-06-08 04:17:34 +0200
commitff35c7cdfac3a4affa9e98a806281da99f66787f (patch)
tree1c38a666fe54b4dea591c0e744b9e0fde1fd4eb7 /libavformat/ftp.c
parent89b4800eef7bef71f1c974ca751143f39407a437 (diff)
ftp: add invalid code for RETR operation
554 is possible invalid code: - Restart not valid - Command terminated due to server shutdown in progress - etc... Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Diffstat (limited to 'libavformat/ftp.c')
-rw-r--r--libavformat/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ftp.c b/libavformat/ftp.c
index 5b1c42595e..a256a25335 100644
--- a/libavformat/ftp.c
+++ b/libavformat/ftp.c
@@ -378,7 +378,7 @@ static int ftp_file_size(FTPContext *s)
static int ftp_retrieve(FTPContext *s)
{
char command[CONTROL_BUFFER_SIZE];
- const int retr_codes[] = {150, 550, 0}; /* 550 is incorrect code */
+ const int retr_codes[] = {150, 550, 554, 0}; /* 550, 554 are incorrect codes */
snprintf(command, sizeof(command), "RETR %s\r\n", s->path);
if (ftp_send_command(s, command, retr_codes, NULL) != 150)