Skip to content

A fix for Apache 1.3.41

A patch fixes caching in proxy module of Apache 1.3.41:


diff -ruN apache_1.3.41.orig/src/modules/proxy/proxy_util.c apache_1.3.41/src/modules/proxy/proxy_util.c
--- apache_1.3.41.orig/src/modules/proxy/proxy_util.c	2007-10-30 22:17:03.000000000 +0300
+++ apache_1.3.41/src/modules/proxy/proxy_util.c	2009-04-26 21:01:33.000000000 +0400
@@ -718,8 +718,9 @@
 
         while (i > 0 && ap_isspace(list[i - 1]))
             i--;
-        if (i == len && strncasecmp(list, key, len) == 0) {
+        if (i >= len && strncasecmp(list, key, len) == 0) {
             if (val) {
+		list += len;
                 p = strchr(list, ',');
                 while (ap_isspace(*list)) {
                     list++;

The patch for downloading: apache_1341

In fact, this patch corrects the search for a key with value in a comma-separated list of case-insensitive tokens, as well, it fixes the value extraction of the key when needed. This bug prevented detection if local copy isn't expired yet.

Leave a Reply

Your email address will not be published. Required fields are marked *