diff --git a/ChangeLog b/ChangeLog index b01ccd963..8610aa486 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,9 @@ * include/xorg-config.h.in: Make self-backtracing work. Spotted by many people, patch from Gentoo. + * os/access.c: + Bug #5218: Avoid crashing on unconfigured interfaces. (Andrei Barbu) + 2005-12-20 Kevin E. Martin * configure.ac: 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;