GDBusAuth: Handle when no there is no auth observer present
authorDavid Zeuthen <davidz@redhat.com>
Sat, 14 Apr 2012 16:40:57 +0000 (12:40 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Sat, 14 Apr 2012 16:40:57 +0000 (12:40 -0400)
I obviously fucked up when adding the ::allow-mechanism signal, sorry.

Signed-off-by: David Zeuthen <davidz@redhat.com>
gio/gdbusauth.c

index 8d4723c8fabc9a4b55f7d7df0c02452159cbc929..75e74adbcd09fddda46c40621a85e57664cd137d 100644 (file)
@@ -201,7 +201,7 @@ add_mechanism (GDBusAuth         *auth,
   const gchar *name;
 
   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;
       m = g_new0 (Mechanism, 1);