forked from FFmpeg/FFmpeg
lavf/ftp: fix possible crash
This commit is contained in:
parent
c4810fbe4f
commit
f3ace37a3b
1 changed files with 2 additions and 1 deletions
|
@ -128,6 +128,7 @@ 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) {
|
||||
if (line)
|
||||
av_bprint_finalize(&line_buffer, NULL);
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue