From a2a7482f2a38c86e6d9790a177dabdc02153e087 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 17 Feb 2015 14:40:27 +1000 Subject: 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 Tested-by: Peter Hutterer Signed-off-by: Peter Hutterer v2: backport to nx-libs 3.6.x (Ulrich Sibiller) --- nx-X11/programs/Xserver/os/access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nx-X11/programs') 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 { -- cgit v1.2.3