LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File patch.bug49839 of Package dba-apache2-mod_remoteip (Project home:csbuild:DBA)

diff -uNr mod_remoteip-0.1203875.orig/mod_remoteip.c mod_remoteip-0.1203875/mod_remoteip.c
--- mod_remoteip-0.1203875.orig/mod_remoteip.c	2012-05-07 17:35:43.000000000 +0200
+++ mod_remoteip-0.1203875/mod_remoteip.c	2012-05-07 17:36:08.000000000 +0200
@@ -242,6 +242,12 @@
     unsigned char *addrbyte;
     void *internal = NULL;
 
+    /* This should be done only once, not internal subrequests or redirects
+     */
+    if (r->main || r->prev)
+        return OK;
+
+
     apr_pool_userdata_get((void*)&conn, "mod_remoteip-conn", c->pool);
 
     if (conn) {