PATCH: Fix crash with --nolisten unix

Waldo Bastian Waldo.Bastian at intel.com
Mon Sep 5 06:43:37 PDT 2005


Patch below fixes a crash here when running the X server with "--nolisten 
unix". Don't ask ;-)

Btw, how is this line between #ifdef DNETCONN supposed to compile?

Cheers,
Waldo

Index: access.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/os/access.c,v
retrieving revision 1.12
diff -u -p -r1.12 access.c
--- access.c    3 Jul 2005 08:53:51 -0000       1.12
+++ access.c    5 Sep 2005 13:29:21 -0000
@@ -972,6 +972,8 @@ DefineSelf (int fd)
        return;
     }
     for (ifr = ifap; ifr != NULL; ifr = ifr->ifa_next) {
+        if (!ifr->ifa_addr)
+            continue;
 #ifdef DNETCONN
        if (ifr->ifa_addr.sa_family == AF_DECnet) 
            continue;
-- 
Linux Client Architect - Channel Software Operation - Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xorg_access.patch
Type: text/x-diff
Size: 518 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20050905/4d1a5dd5/attachment.patch>


More information about the xorg mailing list