mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
Merge commit '27852f2f1dec3749ea79883b70484c841169f747'
* commit '27852f2f1dec3749ea79883b70484c841169f747': libavformat: Handle error return from ff_listen_bind Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -126,11 +126,11 @@ static int tcp_open(URLContext *h, const char *uri, int flags)
|
||||
}
|
||||
|
||||
if (s->listen) {
|
||||
if ((fd = ff_listen_bind(fd, cur_ai->ai_addr, cur_ai->ai_addrlen,
|
||||
s->listen_timeout, h)) < 0) {
|
||||
ret = fd;
|
||||
if ((ret = ff_listen_bind(fd, cur_ai->ai_addr, cur_ai->ai_addrlen,
|
||||
s->listen_timeout, h)) < 0) {
|
||||
goto fail1;
|
||||
}
|
||||
fd = ret;
|
||||
} else {
|
||||
if ((ret = ff_listen_connect(fd, cur_ai->ai_addr, cur_ai->ai_addrlen,
|
||||
s->open_timeout / 1000, h, !!cur_ai->ai_next)) < 0) {
|
||||
|
Reference in New Issue
Block a user