You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
lavf/ftp: fix possible crash
This commit is contained in:
@ -128,7 +128,8 @@ static int ftp_status(FTPContext *s, char **line, const int response_codes[])
|
||||
|
||||
while (!code_found || dash) {
|
||||
if ((err = ftp_get_line(s, buf, sizeof(buf))) < 0) {
|
||||
av_bprint_finalize(&line_buffer, NULL);
|
||||
if (line)
|
||||
av_bprint_finalize(&line_buffer, NULL);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user