~ubuntu-branches/ubuntu/lucid/gdm/lucid-proposed

« back to all changes in this revision

Viewing changes to debian/patches/96_xdmcpfill_length.patch

  • Committer: Bazaar Package Importer
  • Author(s): Alkis Georgopoulos
  • Date: 2011-01-07 02:02:24 UTC
  • Revision ID: james.westby@ubuntu.com-20110107020224-52i0rabyn3x05hs9
Tags: 2.30.2.is.2.30.0-0ubuntu5
Initialize length for XdmcpFill, fixes XDMCP logins (LP: #697112)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- gdm-2.30.2.is.2.30.0.orig/daemon/gdm-xdmcp-display-factory.c
 
2
+++ gdm-2.30.2.is.2.30.0/daemon/gdm-xdmcp-display-factory.c
 
3
@@ -2842,6 +2842,8 @@
 
4
                 return TRUE;
 
5
         }
 
6
 
 
7
+        ss_len = sizeof(clnt_ss);
 
8
+
 
9
         res = XdmcpFill (factory->priv->socket_fd, &factory->priv->buf, (XdmcpNetaddr)&clnt_ss, &ss_len);
 
10
         if G_UNLIKELY (! res) {
 
11
                 g_debug ("GdmXdmcpDisplayFactory: Could not create XDMCP buffer!");