GDBusAuth: Handle when no there is no auth observer present

I obviously fucked up when adding the ::allow-mechanism signal, sorry.

Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
David Zeuthen 2012-04-14 12:40:57 -04:00
parent b9d1fe7db2
commit 6a9341d851

View File

@ -201,7 +201,7 @@ add_mechanism (GDBusAuth *auth,
const gchar *name; const gchar *name;
name = _g_dbus_auth_mechanism_get_name (mechanism_type); name = _g_dbus_auth_mechanism_get_name (mechanism_type);
if (g_dbus_auth_observer_allow_mechanism (observer, name)) if (observer == NULL || g_dbus_auth_observer_allow_mechanism (observer, name))
{ {
Mechanism *m; Mechanism *m;
m = g_new0 (Mechanism, 1); m = g_new0 (Mechanism, 1);