[gdm/multi-stack] When one PAM conv. wins, actually stop the others
- From: Ray Strode <halfline src gnome org>
- To: svn-commits-list gnome org
- Subject: [gdm/multi-stack] When one PAM conv. wins, actually stop the others
- Date: Tue, 21 Apr 2009 15:33:01 -0400 (EDT)
commit 80107a061b3ac2300e9cec17f18d5dc02557a8d3
Author: Ray Strode <rstrode redhat com>
Date: Tue Apr 21 15:30:28 2009 -0400
When one PAM conv. wins, actually stop the others
We weren't properly keeping the winning conversation
around in the previous commit
---
daemon/gdm-session-direct.c | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/daemon/gdm-session-direct.c b/daemon/gdm-session-direct.c
index cb84f01..7173080 100644
--- a/daemon/gdm-session-direct.c
+++ b/daemon/gdm-session-direct.c
@@ -2308,13 +2308,20 @@ stop_all_other_conversations (GdmSessionDirect *session,
conversation = (GdmSessionConversation *) value;
if (conversation == conversation_to_keep) {
- continue;
+ g_hash_table_iter_steal (&iter);
+ g_free (key);
+ } else {
+ stop_conversation (conversation);
}
-
- stop_conversation (conversation);
}
g_hash_table_remove_all (session->priv->conversations);
+
+ if (conversation_to_keep != NULL) {
+ g_hash_table_insert (session->priv->conversations,
+ g_strdup (conversation_to_keep->service_name),
+ conversation_to_keep);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]