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/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/udp.c') diff --git a/libavformat/udp.c b/libavformat/udp.c index 66399b7093..bfa8cf25e8 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -270,7 +270,7 @@ static int udp_socket_create(UDPContext *s, struct sockaddr_storage *addr, if (res0 == 0) goto fail; for (res = res0; res; res=res->ai_next) { - udp_fd = socket(res->ai_family, SOCK_DGRAM, 0); + udp_fd = ff_socket(res->ai_family, SOCK_DGRAM, 0); if (udp_fd != -1) break; log_net_error(NULL, AV_LOG_ERROR, "socket"); } -- cgit v1.2.3