[vlc-commits] FIx socket leak (=?UTF-8?Q?cid=C2=A0=231049574?=)
Rémi Duraffort
git at videolan.org
Sat Jul 20 11:52:39 CEST 2013
vlc/vlc-2.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Jul 19 21:24:50 2013 +0200| [de8ad70f2a457443c665e0ff9a1ee74d12cb17a3] | committer: Jean-Baptiste Kempf
FIx socket leak (cid #1049574)
(cherry picked from commit 2b8ee7da21320ce53600eebe75177092ab222015)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=de8ad70f2a457443c665e0ff9a1ee74d12cb17a3
---
src/network/udp.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/network/udp.c b/src/network/udp.c
index c83145f..d3ccf7f 100644
--- a/src/network/udp.c
+++ b/src/network/udp.c
@@ -560,11 +560,8 @@ int net_ConnectDgram( vlc_object_t *p_this, const char *psz_host, int i_port,
#endif
b_unreach = true;
else
- {
msg_Warn( p_this, "%s port %d : %m", psz_host, i_port);
- net_Close( fd );
- continue;
- }
+ net_Close( fd );
}
freeaddrinfo( res );
More information about the vlc-commits
mailing list