Commit 08e2b810 authored by Ralf Habacker's avatar Ralf Habacker

dbus_server_set_auth_mechanisms: Fix returning without unlocking server->mutex->lock (CID 54749).

Reported by Coverity: CID 54749: Missing unlock (LOCK)

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90021Reviewed-by: default avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
parent 620ca3eb
......@@ -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;
......
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