summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorGeorge Lebl <jirka@5z.com>2004-01-15 20:37:10 +0000
committerGeorge Lebl <jirka@src.gnome.org>2004-01-15 20:37:10 +0000
commit7884d1eb81d38b6d68c1e4c23b74559d932bd94f (patch)
treee5c3d78898d96aae6cc37312698c7ae5cecc947d /daemon
parent25ccc8e4e37ef32194e53bb62fd216ef11c2efd5 (diff)
downloadgdm-7884d1eb81d38b6d68c1e4c23b74559d932bd94f.tar.gz
Fix #131389 where if the slave crashed the login field was not cleared
Thu Jan 15 12:35:45 2004 George Lebl <jirka@5z.com> * daemon/gdm.c: Fix #131389 where if the slave crashed the login field was not cleared
Diffstat (limited to 'daemon')
-rw-r--r--daemon/gdm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/daemon/gdm.c b/daemon/gdm.c
index af13821c..77ecd072 100644
--- a/daemon/gdm.c
+++ b/daemon/gdm.c
@@ -1361,6 +1361,8 @@ gdm_cleanup_children (void)
/* definately not logged in now */
d->logged_in = FALSE;
+ g_free (d->login);
+ d->login = NULL;
/* Declare the display dead */
d->slavepid = 0;
@@ -2519,7 +2521,8 @@ gdm_handle_message (GdmConnection *conn, const char *msg, gpointer data)
gdm_debug ("Got QUERYLOGIN %s", p);
for (li = displays; li != NULL; li = li->next) {
GdmDisplay *di = li->data;
- if (di->login != NULL &&
+ if (di->logged_in &&
+ di->login != NULL &&
strcmp (di->login, p) == 0) {
if (resp == NULL) {
resp = g_string_new (di->name);