From f7927caa8d947432455be3e52a7e799f36077eec Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Wed, 22 Apr 2015 14:47:08 +0200 Subject: [PATCH] dbus_server_set_auth_mechanisms: Fix returning without unlocking server->mutex->lock (CID 54749). Reported by Coverity: CID 54749: Missing unlock (LOCK) --- dbus/dbus-server.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dbus/dbus-server.c b/dbus/dbus-server.c index c1d5f6e..7b81079 100644 --- a/dbus/dbus-server.c +++ b/dbus/dbus-server.c @@ -1043,7 +1043,10 @@ dbus_server_set_auth_mechanisms (DBusServer *server, { copy = _dbus_dup_string_array (mechanisms); if (copy == NULL) - return FALSE; + { + SERVER_UNLOCK (server); + return FALSE; + } } else copy = NULL; -- 1.8.4.5