Commit 121c6b90 authored by Rémi Duraffort's avatar Rémi Duraffort

Fix missing unlock (cid #1047159)

parent f23239d4
...@@ -167,7 +167,10 @@ int rootwrap_bind (int family, int socktype, int protocol, ...@@ -167,7 +167,10 @@ int rootwrap_bind (int family, int socktype, int protocol,
pthread_mutex_lock (&mutex); pthread_mutex_lock (&mutex);
if (send (sock, &ss, sizeof (ss), 0) != sizeof (ss)) if (send (sock, &ss, sizeof (ss), 0) != sizeof (ss))
{
pthread_mutex_unlock (&mutex);
return -1; return -1;
}
fd = recv_fd (sock); fd = recv_fd (sock);
pthread_mutex_unlock (&mutex); pthread_mutex_unlock (&mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment