aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2015-02-17 14:40:27 +1000
committerUlrich Sibiller <uli42@gmx.de>2016-10-06 21:16:17 +0200
commita2a7482f2a38c86e6d9790a177dabdc02153e087 (patch)
treea73b445b7248459b8d37a916172e24ca43d4ed0c /nx-X11/programs
parenta11629656cc9cfde12f5145191fe05435958d5bd (diff)
downloadnx-libs-a2a7482f2a38c86e6d9790a177dabdc02153e087.tar.gz
nx-libs-a2a7482f2a38c86e6d9790a177dabdc02153e087.tar.bz2
nx-libs-a2a7482f2a38c86e6d9790a177dabdc02153e087.zip
os/access: fix regression in server interpreted auth
This was reported on irc on Fedora when rawhide went to 1.17.1. regression occured in: 2566835b4374edb3e5a8353d4f7c9e7ec4851c57 os: Eliminate uninitialized value warnings from access.c siAddrMatch doesn't need addr to be a useful value, it checks some things like localuser without having an address at all. Signed-off-by: Dave Airlie <airlied@redhat.com> Tested-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> v2: backport to nx-libs 3.6.x (Ulrich Sibiller)
Diffstat (limited to 'nx-X11/programs')
-rw-r--r--nx-X11/programs/Xserver/os/access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/os/access.c b/nx-X11/programs/Xserver/os/access.c
index 032468362..532e32f68 100644
--- a/nx-X11/programs/Xserver/os/access.c
+++ b/nx-X11/programs/Xserver/os/access.c
@@ -1809,7 +1809,7 @@ InvalidHost (
for (host = validhosts; host; host = host->next)
{
if ((host->family == FamilyServerInterpreted)) {
- if (addr && siAddrMatch (family, addr, len, host, client)) {
+ if (siAddrMatch (family, addr, len, host, client)) {
return (0);
}
} else {