--- trunk/xorg-server/patches/xorg-server-1.17.1-os-access-fix-regression-in-server-interpreted-auth.patch 2015/06/15 12:22:48 2575 +++ trunk/xorg-server/patches/xorg-server-1.17.1-os-access-fix-regression-in-server-interpreted-auth.patch 2015/06/15 13:02:17 2576 @@ -1,126 +1,30 @@ - - - -svntogit/packages.git - Git clone of the 'packages' repository - - - - - - - - - - - - -
- -
- -
-
-
- - - -
-summaryrefslogtreecommitdiffstats
- - - -
-
-
path: root/trunk/os-access-fix-regression-in-server-interpreted-auth.patch
blob: b96bb7a31743b849f52f5c17212b433348799f4d (plain) - - -
1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-
diff --git a/os/access.c b/os/access.c
+diff --git a/os/access.c b/os/access.c
 index 28f2d32..fe6e831 100644
---- a/os/access.c
-+++ b/os/access.c
-@@ -1390,14 +1390,23 @@ InvalidHost(register struct sockaddr *saddr, int len, ClientPtr client)
+--- a/os/access.c
++++ b/os/access.c
+@@ -1390,14 +1390,23 @@ InvalidHost(register struct sockaddr *saddr, int len, ClientPtr client)
          else
              return 0;
      }
-+
-+    /* An empty address requires both a NULL addr *and* a zero length
-+     * as the address comparison functions call memcmp with both
-+     * parameters. Make sure they agree here
-+     */
-+    if (addr == NULL)
-+        len = 0;
-+    if (len == 0)
-+        addr = NULL;
-     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)) {
++
++    /* An empty address requires both a NULL addr *and* a zero length
++     * as the address comparison functions call memcmp with both
++     * parameters. Make sure they agree here
++     */
++    if (addr == NULL)
++        len = 0;
++    if (len == 0)
++        addr = NULL;
+     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;
              }
          }
          else {
--            if (addr && addrEqual(family, addr, len, host))
-+            if (addrEqual(family, addr, len, host))
+-            if (addr && addrEqual(family, addr, len, host))
++            if (addrEqual(family, addr, len, host))
                  return 0;
          }
 
-
-
-
-

Copyright © 2002-2014 Judd Vinet and Aaron Griffin. The Arch Linux name and logo -are recognized trademarks. Some rights reserved. The registered trademark -Linux® is used pursuant to a sublicense from LMI, the exclusive licensee -of Linus Torvalds, owner of the mark on a world-wide basis.

-
-
- -