aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/os
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2017-02-15 09:41:36 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-03-20 10:50:58 +0100
commiteac0a8fade92e47a8fdbcceb2821e5f9bbf0063f (patch)
treece527c7ab087726304092b54deeed5b840d6f9e2 /nx-X11/programs/Xserver/os
parentf9123570dbe81fdea4e38e7be9775cf926ed1eb3 (diff)
downloadnx-libs-eac0a8fade92e47a8fdbcceb2821e5f9bbf0063f.tar.gz
nx-libs-eac0a8fade92e47a8fdbcceb2821e5f9bbf0063f.tar.bz2
nx-libs-eac0a8fade92e47a8fdbcceb2821e5f9bbf0063f.zip
Don't crash on unconfigured interfaces. (X.org bug #5218, Andrei Barbu)
commit 9d62d1e6903ccc095f784279a699b3f40a8f0cf8 Author: Adam Jackson <ajax@nwnk.net> 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 <mike.gabriel@das-netzwerkteam.de>
Diffstat (limited to 'nx-X11/programs/Xserver/os')
-rw-r--r--nx-X11/programs/Xserver/os/access.c2
1 files changed, 2 insertions, 0 deletions
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)