[vlc-commits] Fix missing unlock (cid #1047159)
Rémi Duraffort
git at videolan.org
Sat Jul 13 15:31:26 CEST 2013
vlc/vlc-2.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Jul 13 09:58:43 2013 +0200| [a2d31c11a1ba4fff0c0030e1f4e32e1ae20f6217] | committer: Jean-Baptiste Kempf
Fix missing unlock (cid #1047159)
(cherry picked from commit 121c6b90c774fd64ad5510d7a626eee423d2aeb0)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=a2d31c11a1ba4fff0c0030e1f4e32e1ae20f6217
---
src/network/rootbind.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/network/rootbind.c b/src/network/rootbind.c
index 0d5d635..89d9328 100644
--- a/src/network/rootbind.c
+++ b/src/network/rootbind.c
@@ -167,7 +167,10 @@ int rootwrap_bind (int family, int socktype, int protocol,
pthread_mutex_lock (&mutex);
if (send (sock, &ss, sizeof (ss), 0) != sizeof (ss))
+ {
+ pthread_mutex_unlock (&mutex);
return -1;
+ }
fd = recv_fd (sock);
pthread_mutex_unlock (&mutex);
More information about the vlc-commits
mailing list