really quick patch on connman asking for logins... agent->msg is the
authorCarsten Haitzler <raster@rasterman.com>
Sun, 7 Oct 2012 09:59:07 +0000 (09:59 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Sun, 7 Oct 2012 09:59:07 +0000 (09:59 +0000)
same as msg in the cb. this stops an instant segv but doesnt fully fix
it. it's at least marked/commented to be looked at.

SVN revision: 77556

src/modules/connman/agent.c

index 41df911..dadff7c 100644 (file)
@@ -413,6 +413,9 @@ _agent_request_input(E_DBus_Object *obj, DBusMessage *msg)
    agent = e_dbus_object_data_get(obj);
 
    /* Discard previous requests */
+   // if msg is the current agent msg? eek.
+   if (agent->msg == msg) return NULL;
+
    if (agent->msg)
      dbus_message_unref(agent->msg);
    agent->msg = dbus_message_ref(msg);