The problem is in squid-2.5 serieas and squid3. This patch apply to
both.

tm_year max must be 138, google's images have 2038 as expiritacion year
for example. This reduces a little more traffic if it is right parsed.

regards,
        diegows


diff -Nur squid-2.5.STABLE7/lib/rfc1123.c
squid-2.5.STABLE7-year~/lib/rfc1123.c
--- squid-2.5.STABLE7/lib/rfc1123.c     2001-10-17 16:46:43.000000000 -0300
+++ squid-2.5.STABLE7-year~/lib/rfc1123.c       2004-12-02 01:26:54.000000000
-0300
@@ -119,7 +119,7 @@
        return 0;
     if (tm->tm_mon < 0 || tm->tm_mon > 11)
        return 0;
-    if (tm->tm_year < 70 || tm->tm_year > 120)
+    if (tm->tm_year < 70 || tm->tm_year > 138)
        return 0;
     return 1;
 }


Reply via email to