From bb9378251a167ef0116f263912e57f715c1e02ac Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Sat, 3 Aug 2013 15:00:11 +0200 Subject: network: Use SOCK_CLOEXEC when available --- libavformat/sctp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/sctp.c') diff --git a/libavformat/sctp.c b/libavformat/sctp.c index 42dd547b67..66b31ccec6 100644 --- a/libavformat/sctp.c +++ b/libavformat/sctp.c @@ -198,7 +198,7 @@ static int sctp_open(URLContext *h, const char *uri, int flags) cur_ai = ai; - fd = socket(cur_ai->ai_family, SOCK_STREAM, IPPROTO_SCTP); + fd = ff_socket(cur_ai->ai_family, SOCK_STREAM, IPPROTO_SCTP); if (fd < 0) goto fail; -- cgit v1.2.3