summaryrefslogtreecommitdiffstats
path: root/mod_authnz_external-3.3.1-remote_ip.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-06-13 18:43:31 +0200
committerRemi Collet <fedora@famillecollet.com>2012-06-13 18:43:31 +0200
commitb729092c0fb9f7313bfe8c6898940cf97910f218 (patch)
treeb4ff8062b89a06853c957c019bb14338712d53df /mod_authnz_external-3.3.1-remote_ip.patch
reorg repoHEADmaster
Diffstat (limited to 'mod_authnz_external-3.3.1-remote_ip.patch')
-rw-r--r--mod_authnz_external-3.3.1-remote_ip.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/mod_authnz_external-3.3.1-remote_ip.patch b/mod_authnz_external-3.3.1-remote_ip.patch
new file mode 100644
index 0000000..821a057
--- /dev/null
+++ b/mod_authnz_external-3.3.1-remote_ip.patch
@@ -0,0 +1,20 @@
+--- mod_authnz_external-3.3.1/mod_authnz_external.c.orig 2011-10-07 12:43:34.000000000 -0600
++++ mod_authnz_external-3.3.1/mod_authnz_external.c 2012-05-06 23:24:41.774553228 -0600
+@@ -443,8 +443,17 @@ static int exec_external(const char *ext
+ if (remote_host != NULL)
+ child_env[i++]= apr_pstrcat(p, ENV_HOST"=", remote_host,NULL);
+
++#if ((AP_SERVER_MAJORVERSION_NUMBER == 2) \
++ && (AP_SERVER_MINORVERSION_NUMBER == 2))
+ if (c->remote_ip)
+ child_env[i++]= apr_pstrcat(p, ENV_IP"=", c->remote_ip, NULL);
++#elif ((AP_SERVER_MAJORVERSION_NUMBER == 2) \
++ && (AP_SERVER_MINORVERSION_NUMBER == 4))
++ if (c->client_ip)
++ child_env[i++]= apr_pstrcat(p, ENV_IP"=", c->client_ip, NULL);
++#else
++#error buildable only under APR 2.2 or 2.4
++#endif
+
+ if (r->uri)
+ child_env[i++]= apr_pstrcat(p, ENV_URI"=", r->uri, NULL);