[gdm] GdmSession: fix signature of Reauthenticated signal handler



commit 27d14a6ebdb9960bb833a1012f49548b47466fb0
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Mon Aug 13 15:04:44 2012 +0200

    GdmSession: fix signature of Reauthenticated signal handler
    
    GdmSession expects to receive the service name along with the signal,
    but the DBus interface does not include it, and this causes a crash.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=678057

 daemon/gdm-session.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
index e40ae88..d7a72e0 100644
--- a/daemon/gdm-session.c
+++ b/daemon/gdm-session.c
@@ -876,10 +876,11 @@ on_reauthentication_started_cb (GdmDBusWorker *worker,
 
 static void
 worker_on_reauthenticated (GdmDBusWorker          *worker,
-                           const char             *service_name,
                            GdmSessionConversation *conversation)
 {
         GdmSession *self = conversation->session;
+        const char *service_name = conversation->service_name;
+
         g_debug ("GdmSession: Emitting 'reauthenticated' signal ");
         g_signal_emit (self, signals[REAUTHENTICATED], 0, service_name);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]