From a18fbcb27a6a8e794565daabd310a8a561801473 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 27 Nov 2017 16:06:59 +0100 Subject: [PATCH] Fix missing variable name which can lead to segfaults refs #5808 refs #5807 Signed-off-by: Michael Friedrich --- lib/remote/apilistener.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/remote/apilistener.cpp b/lib/remote/apilistener.cpp index 86cc79759..b00c37f6a 100644 --- a/lib/remote/apilistener.cpp +++ b/lib/remote/apilistener.cpp @@ -1354,37 +1354,37 @@ double ApiListener::CalculateZoneLag(const Endpoint::Ptr& endpoint) void ApiListener::AddAnonymousClient(const JsonRpcConnection::Ptr& aclient) { - boost::mutex::scoped_lock(m_AnonymousClientsLock); + boost::mutex::scoped_lock lock(m_AnonymousClientsLock); m_AnonymousClients.insert(aclient); } void ApiListener::RemoveAnonymousClient(const JsonRpcConnection::Ptr& aclient) { - boost::mutex::scoped_lock(m_AnonymousClientsLock); + boost::mutex::scoped_lock lock(m_AnonymousClientsLock); m_AnonymousClients.erase(aclient); } std::set ApiListener::GetAnonymousClients(void) const { - boost::mutex::scoped_lock(m_AnonymousClientsLock); + boost::mutex::scoped_lock lock(m_AnonymousClientsLock); return m_AnonymousClients; } void ApiListener::AddHttpClient(const HttpServerConnection::Ptr& aclient) { - boost::mutex::scoped_lock(m_HttpClientsLock); + boost::mutex::scoped_lock lock(m_HttpClientsLock); m_HttpClients.insert(aclient); } void ApiListener::RemoveHttpClient(const HttpServerConnection::Ptr& aclient) { - boost::mutex::scoped_lock(m_HttpClientsLock); + boost::mutex::scoped_lock lock(m_HttpClientsLock); m_HttpClients.erase(aclient); } std::set ApiListener::GetHttpClients(void) const { - boost::mutex::scoped_lock(m_HttpClientsLock); + boost::mutex::scoped_lock lock(m_HttpClientsLock); return m_HttpClients; }