summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-08-18 21:03:54 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-08-18 21:07:35 -0700
commita57a7be5962f6f9536ab97751b177575a4884bd0 (patch)
tree932d60af3fe6d90ad463d08eb4bdf851af1425f1
parenta9040b281062ddabcfb2cfdfc37e431b047531b2 (diff)
Treat all 127.0.0.0/8 addresses as localhost
Similar fix to http://bugs.freedesktop.org/show_bug.cgi?id=23329 Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
-rw-r--r--auth.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/auth.c b/auth.c
index 38191f8..dc372a0 100644
--- a/auth.c
+++ b/auth.c
@@ -731,9 +731,7 @@ DefineSelf(int fd, FILE *file, Xauth *auth)
* the local entry anyway, so this one can
* be tossed.
*/
- if (family == FamilyInternet && len == 4 &&
- addr[0] == 127 && addr[1] == 0 &&
- addr[2] == 0 && addr[3] == 1)
+ if (family == FamilyInternet && len == 4 && addr[0] == 127)
{
Debug ("Skipping localhost address\n");
continue;