summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-07-28 12:58:58 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-07-28 12:58:58 -0700
commit500775eb145372c5dcbc6e9814858d01730900c7 (patch)
treececa65bf81fc433573c1840d7801838990ea831d
parent58021c21c28fdb4949d44aa92e68874155842ccc (diff)
Continue processing Xaccess after unresolvable host entry found
If there is an unresolvable host entry in Xaccess file, XDMCP access from the hosts whose entries are specified after the unresolvable host in Xaccess were rejected. (Originally reported against dtlogin as Solaris bug 6259901.) Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
-rw-r--r--access.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/access.c b/access.c
index 43ec74d..a9558b8 100644
--- a/access.c
+++ b/access.c
@@ -397,6 +397,7 @@ ReadDisplayEntry (FILE *file)
struct _display *display;
HostEntry *h, **prev;
+tryagain:
displayOrAlias = ReadWord (file, FALSE);
if (!displayOrAlias)
return NULL;
@@ -473,7 +474,7 @@ ReadDisplayEntry (FILE *file)
if (ai)
freeaddrinfo(ai);
# endif
- return NULL;
+ goto tryagain;
}
d->type = DISPLAY_ADDRESS;
display = &d->entry.displayAddress;