From f76b9d724b322875016005763ae8389c3c23e5f1 Mon Sep 17 00:00:00 2001 From: sapier Date: Sun, 11 May 2014 00:14:57 +0200 Subject: Fix possible deadlock in error conditions --- src/server.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/server.cpp b/src/server.cpp index 288f254ed..22efca670 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -2894,8 +2894,10 @@ bool Server::getClientInfo( m_clients.Lock(); RemoteClient* client = m_clients.lockedGetClientNoEx(peer_id,Invalid); - if (client == NULL) + if (client == NULL) { + m_clients.Unlock(); return false; + } *uptime = client->uptime(); *ser_vers = client->serialization_version; -- cgit v1.2.3