altarch-user / rpms / httpd

Forked from rpms/httpd 2 years ago
Clone

Blame SOURCES/httpd-2.4.6-r1569006.patch

008793
--- a/modules/metadata/mod_remoteip.c	2014/02/17 14:11:38	1569005
008793
+++ b/modules/metadata/mod_remoteip.c	2014/02/17 14:12:30	1569006
008793
@@ -246,14 +246,14 @@
008793
 
008793
     while (remote) {
008793
 
008793
-        /* verify c->client_addr is trusted if there is a trusted proxy list
008793
+        /* verify user agent IP against the trusted proxy list
008793
          */
008793
         if (config->proxymatch_ip) {
008793
             int i;
008793
             remoteip_proxymatch_t *match;
008793
             match = (remoteip_proxymatch_t *)config->proxymatch_ip->elts;
008793
             for (i = 0; i < config->proxymatch_ip->nelts; ++i) {
008793
-                if (apr_ipsubnet_test(match[i].ip, c->client_addr)) {
008793
+                if (apr_ipsubnet_test(match[i].ip, temp_sa)) {
008793
                     internal = match[i].internal;
008793
                     break;
008793
                 }