13
0

fix edge case - handle error in device owner request

This commit is contained in:
Robin Gareus 2014-06-15 20:42:34 +02:00
parent 4651530d6f
commit 443ccb866f

View File

@ -326,7 +326,7 @@ static DBusHandlerResult filter_handler(
const char *un;
if ((un = dbus_bus_get_unique_name(c)) && rd_dbus_get_name_owner(c, d->service_name, &name_owner, &error) == 0)
if (strcmp(name_owner, un) == 0)
if (name_owner && strcmp(name_owner, un) == 0)
goto invalid; /* Name still owned by us */
}