1508N/A--- a/greeter/greet.c Fri Feb 13 12:22:48 2015
1508N/A+++ b/greeter/greet.c Fri Feb 13 12:23:57 2015
1508N/A@@ -347,6 +347,8 @@
1508N/A XSetAccessControl (dpy, DisableAccess);
1508N/A }
1508N/A XtDestroyWidget (toplevel);
1508N/A+ toplevel = NULL;
1508N/A+ login = NULL;
1508N/A ClearCloseOnFork (XConnectionNumber (dpy));
1508N/A XCloseDisplay (dpy);
1508N/A Debug ("Greet connection closed\n");
1508N/A@@ -736,6 +738,11 @@
1508N/A m = (struct pam_message *)*msg;
1508N/A r = *response;
1508N/A
1508N/A+ if (login == NULL) {
1508N/A+ status = PAM_CONV_ERR;
1508N/A+ goto pam_error;
1508N/A+ }
1508N/A+
1508N/A for (i = 0; i < num_msg; i++ , m++ , r++) {
1508N/A char *username;
1508N/A int promptId = 0;