aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/tcp.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-01-10 17:34:04 +0100
committerAnton Khirnov <anton@khirnov.net>2022-01-21 09:25:05 +0100
commitd2519e8625f901856bfc915a1dc1f492bbd8b395 (patch)
tree8ee3b20da81ed695abbc7e601d952a17d9fdbe9e /libavformat/tcp.c
parent93b4cc38b086f27739a333866cc490ed1a15f499 (diff)
downloadffmpeg-d2519e8625f901856bfc915a1dc1f492bbd8b395.tar.gz
lavf/network: log ff_socket() errors to proper contexts rather than NULL
Diffstat (limited to 'libavformat/tcp.c')
-rw-r--r--libavformat/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tcp.c b/libavformat/tcp.c
index 1c19aed887..84d40a1e11 100644
--- a/libavformat/tcp.c
+++ b/libavformat/tcp.c
@@ -175,7 +175,7 @@ static int tcp_open(URLContext *h, const char *uri, int flags)
while (cur_ai && fd < 0) {
fd = ff_socket(cur_ai->ai_family,
cur_ai->ai_socktype,
- cur_ai->ai_protocol);
+ cur_ai->ai_protocol, h);
if (fd < 0) {
ret = ff_neterrno();
cur_ai = cur_ai->ai_next;