mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/sctp: close socket on errors
This is untested as i have no testcase
Fixes: CID1302709
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c9a2996544
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
d4dad587e6
commit
84fbe1a05d
|
@ -282,6 +282,8 @@ fail:
|
|||
goto restart;
|
||||
}
|
||||
fail1:
|
||||
if (fd >= 0)
|
||||
closesocket(fd);
|
||||
ret = AVERROR(EIO);
|
||||
freeaddrinfo(ai);
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue