Coverity CID 253543.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=104588
Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
{
_DBUS_STATIC_ASSERT (sizeof (uid) == sizeof (dbus_uid_t));
- _dbus_credentials_add_unix_uid (credentials, uid);
- return TRUE;
+ if (_dbus_credentials_add_unix_uid (credentials, uid))
+ {
+ return TRUE;
+ }
+ else
+ {
+ _DBUS_SET_OOM (error);
+ return FALSE;
+ }
}
/* If we aren't allowed to look in NSS or /etc/passwd, fail now. */