diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2021-03-14 11:28:42 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2021-03-14 11:28:42 +0000 |
commit | b01b97ed2c2cc0384c801301faa61b7ad766a99e (patch) | |
tree | 0bc9a748b84f00f613aa0ebf15d01a46afebf9fe /app | |
parent | f3c3c992c66861eafd4fc5642d899c604d8a21c1 (diff) |
Skip IPv6 Link Local Addresses for TCP listener authorizations.
IPv6 Link Local addresses in $DISPLAY are not working for a number
of reasons that are unlikely to get fixed. Matches what is done by
startx(1)
Diffstat (limited to 'app')
-rw-r--r-- | app/xenodm/xenodm/auth.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/xenodm/xenodm/auth.c b/app/xenodm/xenodm/auth.c index 56e48492d..668d7d3fc 100644 --- a/app/xenodm/xenodm/auth.c +++ b/app/xenodm/xenodm/auth.c @@ -694,6 +694,10 @@ DefineSelf(FILE *file, Xauth *auth) Debug ("Skipping IPv6 localhost address\n"); continue; } + if (IN6_IS_ADDR_LINKLOCAL(((struct in6_addr *)addr))) { + Debug("Skipping IPv6 link local address\n"); + continue; + } /* Also skip XDM-AUTHORIZATION-1 */ if (auth->name_length == 19 && strcmp(auth->name, "XDM-AUTHORIZATION-1") == 0) { |