From eac0a8fade92e47a8fdbcceb2821e5f9bbf0063f Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 15 Feb 2017 09:41:36 +0100 Subject: Don't crash on unconfigured interfaces. (X.org bug #5218, Andrei Barbu) commit 9d62d1e6903ccc095f784279a699b3f40a8f0cf8 Author: Adam Jackson Date: Sat Jan 7 00:45:17 2006 +0000 Bug #5218: Don't crash on unconfigured interfaces. (Andrei Barbu) Backported-to-NX-by: Mike Gabriel --- nx-X11/programs/Xserver/os/access.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nx-X11/programs/Xserver') diff --git a/nx-X11/programs/Xserver/os/access.c b/nx-X11/programs/Xserver/os/access.c index d3a18efbe..8236a08df 100644 --- a/nx-X11/programs/Xserver/os/access.c +++ b/nx-X11/programs/Xserver/os/access.c @@ -893,6 +893,8 @@ DefineSelf (int fd) return; } for (ifr = ifap; ifr != NULL; ifr = ifr->ifa_next) { + if (!ifr->ifa_addr) + continue; len = sizeof(*(ifr->ifa_addr)); family = ConvertAddr(ifr->ifa_addr, &len, (void **)&addr); if (family == -1 || family == FamilyLocal) -- cgit v1.2.3