[gdm-list] willing_output double free



Hi,

Since gdm 2.20 it is not possible to set a Xwilling script to show a
customized message at gdm chooser.

This happens because there's a double free at function
gdm_xdmcp_send_willing

The double free error happens when gdm is going to show the xwilling message
for the second time.

Here are the pacth to fix it under gdm 2.24 and 2.25.1

8<-----------------------------
--- gdm-2.24.0.orig/daemon/gdm-xdmcp-display-factory.c  2009-01-26 22:04:55.000000000 -0200
+++ gdm-2.24.0/daemon/gdm-xdmcp-display-factory.c       2009-01-26 22:05:07.000000000 -0200
@@ -794,7 +794,6 @@
 
                 s = get_willing_output (factory);
                 if (s != NULL) {
-                        g_free (last_status);
                         last_status = s;
                 } else {
                         last_status = g_strdup (factory->priv->sysid);
8<-----------------------------

-- 
Bruno Ribas - ribas c3sl ufpr br
http://www.inf.ufpr.br/ribas
C3SL: http://www.c3sl.ufpr.br


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