avformat/ftp: fix possible deadlock

Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
This commit is contained in:
Lukasz Marek 2013-10-12 12:53:54 +02:00
parent 7b1640c4a6
commit e1fb3143bb

View File

@ -486,8 +486,6 @@ static int ftp_abort(URLContext *h)
}
} else {
ftp_close_data_connection(s);
}
if (ftp_status(s, NULL, abor_codes) < 225) {
/* wu-ftpd also closes control connection after data connection closing */
ffurl_closep(&s->conn_control);
@ -496,6 +494,7 @@ static int ftp_abort(URLContext *h)
return err;
}
}
}
return 0;
}