File apache2-CVE-2020-11985.patch of Package apache2.18661

--- 2.4.x/modules/metadata/mod_remoteip.c	2016/11/01 11:53:57	1767482
+++ 2.4.x/modules/metadata/mod_remoteip.c	2016/11/01 11:55:34	1767483
@@ -255,7 +255,7 @@ static int remoteip_modify_request(reque
     }
     remote = apr_pstrdup(r->pool, remote);
 
-    temp_sa = c->client_addr;
+    temp_sa = r->useragent_addr ? r->useragent_addr : c->client_addr;
 
     while (remote) {
 

openSUSE Build Service is sponsored by