session: connect_session: Check correct pointer
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Fri, 8 Apr 2011 15:13:14 +0000 (17:13 +0200)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Fri, 8 Apr 2011 15:16:33 +0000 (17:16 +0200)
src/session.c

index 6ebd141..98c50ad 100644 (file)
@@ -636,7 +636,7 @@ static DBusMessage *connect_session(DBusConnection *conn,
                iter = g_sequence_iter_next(iter);
        }
 
-       if (session != NULL) {
+       if (service != NULL) {
                session->service = service;
                update_service(session);
                g_timeout_add_seconds(0, callback, session);