Commit a2a7482f authored by Dave Airlie's avatar Dave Airlie Committed by Ulrich Sibiller

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: 's avatarDave Airlie <airlied@redhat.com> Tested-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net> Signed-off-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net> v2: backport to nx-libs 3.6.x (Ulrich Sibiller)
parent a1162965
...@@ -1809,7 +1809,7 @@ InvalidHost ( ...@@ -1809,7 +1809,7 @@ InvalidHost (
for (host = validhosts; host; host = host->next) for (host = validhosts; host; host = host->next)
{ {
if ((host->family == FamilyServerInterpreted)) { if ((host->family == FamilyServerInterpreted)) {
if (addr && siAddrMatch (family, addr, len, host, client)) { if (siAddrMatch (family, addr, len, host, client)) {
return (0); return (0);
} }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment