lavf/ftp: fix possible crash

pull/37/head
Lukasz Marek 11 years ago
parent c4810fbe4f
commit f3ace37a3b
  1. 3
      libavformat/ftp.c

@ -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;
}

Loading…
Cancel
Save