Bug #5218: Avoid crashing on unconfigured interfaces. (Andrei Barbu)

This commit is contained in:
Adam Jackson 2006-02-14 23:22:12 +00:00
parent d53e4364d9
commit a4ff401902
2 changed files with 6 additions and 1 deletions

View file

@ -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 <kem-at-freedesktop-dot-org>
* configure.ac:

View file

@ -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;