Commit cb6b6b2b authored by Simon McVittie's avatar Simon McVittie
Browse files

_dbus_credentials_add_from_user: Check return of add_unix_uid

Coverity CID 253543.


Signed-off-by: Simon McVittie's avatarSimon McVittie <>
Reviewed-by: Philip Withnall's avatarPhilip Withnall <>
parent b5c4651b
......@@ -540,9 +540,16 @@ _dbus_credentials_add_from_user (DBusCredentials *credentials,
_DBUS_STATIC_ASSERT (sizeof (uid) == sizeof (dbus_uid_t));
_dbus_credentials_add_unix_uid (credentials, uid);
if (_dbus_credentials_add_unix_uid (credentials, uid))
return TRUE;
_DBUS_SET_OOM (error);
return FALSE;
/* If we aren't allowed to look in NSS or /etc/passwd, fail now. */
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