Commit 6d719a0a authored by Dan Williams's avatar Dan Williams

core: NULL user_proxy means no user settings allowed

Which means we should return an error to the caller.
parent 0e047687
......@@ -724,7 +724,6 @@ check_user_authorized (NMDBusManager *dbus_mgr,
const char **out_error_desc)
{
g_return_val_if_fail (dbus_mgr != NULL, FALSE);
g_return_val_if_fail (user_proxy != NULL, FALSE);
g_return_val_if_fail (context != NULL, FALSE);
g_return_val_if_fail (out_sender_uid != NULL, FALSE);
g_return_val_if_fail (out_error_desc != NULL, FALSE);
......@@ -761,7 +760,6 @@ pending_activation_check_authorized (PendingActivation *pending,
g_return_if_fail (pending != NULL);
g_return_if_fail (dbus_mgr != NULL);
g_return_if_fail (user_proxy != NULL);
if (!check_user_authorized (dbus_mgr,
user_proxy,
......
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