summaryrefslogtreecommitdiff
path: root/libavformat/sctp.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/sctp.c
parent93b4cc38b086f27739a333866cc490ed1a15f499 (diff)
downloadffmpeg-d2519e8625f901856bfc915a1dc1f492bbd8b395.tar.gz
lavf/network: log ff_socket() errors to proper contexts rather than NULL
Diffstat (limited to 'libavformat/sctp.c')
-rw-r--r--libavformat/sctp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/sctp.c b/libavformat/sctp.c
index 9a80e9b015..b8e23653d2 100644
--- a/libavformat/sctp.c
+++ b/libavformat/sctp.c
@@ -220,7 +220,7 @@ static int sctp_open(URLContext *h, const char *uri, int flags)
cur_ai = ai;
restart:
- fd = ff_socket(cur_ai->ai_family, SOCK_STREAM, IPPROTO_SCTP);
+ fd = ff_socket(cur_ai->ai_family, SOCK_STREAM, IPPROTO_SCTP, h);
if (fd < 0) {
ret = ff_neterrno();
goto fail;