Message ID | 20220523003529.21527-2-michael@niedermayer.cc |
---|---|
State | Accepted |
Commit | c9a2996544187f67e533bc24f4cf773e50d2362b |
Headers | show |
Series | [FFmpeg-devel,1/2] avcodec/flashsv: Check inflate() for failure | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
andriy/make_armv7_RPi4 | success | Make finished |
andriy/make_fate_armv7_RPi4 | success | Make fate finished |
diff --git a/libavformat/sctp.c b/libavformat/sctp.c index b8e23653d2..9d9e90097e 100644 --- a/libavformat/sctp.c +++ b/libavformat/sctp.c @@ -282,6 +282,8 @@ fail: goto restart; } fail1: + if (fd >= 0) + closesocket(fd); ret = AVERROR(EIO); freeaddrinfo(ai); return ret;
This is untested as i have no testcase Fixes: CID1302709 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavformat/sctp.c | 2 ++ 1 file changed, 2 insertions(+)