mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:21:11 +01:00
avformat/sctp: close socket on errors
This is untested as i have no testcase Fixes: CID1302709 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
b418ad75c2
commit
c9a2996544
1 changed files with 2 additions and 0 deletions
|
|
@ -282,6 +282,8 @@ fail:
|
||||||
goto restart;
|
goto restart;
|
||||||
}
|
}
|
||||||
fail1:
|
fail1:
|
||||||
|
if (fd >= 0)
|
||||||
|
closesocket(fd);
|
||||||
ret = AVERROR(EIO);
|
ret = AVERROR(EIO);
|
||||||
freeaddrinfo(ai);
|
freeaddrinfo(ai);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue