summaryrefslogtreecommitdiff
path: root/os/access.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-01-07 00:45:17 +0000
committerAdam Jackson <ajax@nwnk.net>2006-01-07 00:45:17 +0000
commit9d62d1e6903ccc095f784279a699b3f40a8f0cf8 (patch)
tree9265693d4ef613e863d73ae3d84090856b942c82 /os/access.c
parent3c58072956c28ebc3ca2eb50c1ff09823e1219d7 (diff)
Bug #5218: Don't crash on unconfigured interfaces. (Andrei Barbu)
Diffstat (limited to 'os/access.c')
-rw-r--r--os/access.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/os/access.c b/os/access.c
index 80430fb3d..8b7392e59 100644
--- a/os/access.c
+++ b/os/access.c
@@ -1,5 +1,5 @@
/* $Xorg: access.c,v 1.5 2001/02/09 02:05:23 xorgcvs Exp $ */
-/* $XdotOrg: xc/programs/Xserver/os/access.c,v 1.9 2005/05/02 22:01:08 harold Exp $ */
+/* $XdotOrg: xserver/xorg/os/access.c,v 1.13 2005/11/08 06:33:30 jkj Exp $ */
/***********************************************************
Copyright 1987, 1998 The Open Group
@@ -975,6 +975,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;