Commit 7c9f6ca7 authored by Ralf Habacker's avatar Ralf Habacker

bus_connection_get_unix_groups: NULL-check *groups, not groups

groups is never NULL here, but *groups can be NULL on OOM, and that's the
check that was intended.

Coverity ID 265358.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103737Reviewed-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
parent a3bc4392
......@@ -1064,7 +1064,7 @@ bus_connection_get_unix_groups (DBusConnection *connection,
*n_groups = n;
*groups = dbus_new (unsigned long, n);
if (groups == NULL)
if (*groups == NULL)
{
BUS_SET_OOM (error);
return FALSE;
......
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