diff options
author | Dave Airlie <airlied@redhat.com> | 2015-02-17 14:40:27 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2015-03-13 12:31:21 +1000 |
commit | 9d9bd38fe1454590c303dc936ddac913808bf881 (patch) | |
tree | 08e6157180bd2c1e95bc144f5e2c713e90b98302 /os/access.c | |
parent | 3a06faf3fcdb7451125a46181f9152e8e59e9770 (diff) |
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>
Diffstat (limited to 'os/access.c')
-rw-r--r-- | os/access.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/access.c b/os/access.c index 28f2d3213..8fa028eb4 100644 --- a/os/access.c +++ b/os/access.c @@ -1392,7 +1392,7 @@ InvalidHost(register struct sockaddr *saddr, int len, ClientPtr client) } 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; } } |