little fix in tmSaneValues() (lib/rfc1123.c)

From: Diego Woitasen <diegows@dont-contact.us>
Date: Thu, 02 Dec 2004 01:51:57 +0000

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;
 }
Received on Wed Dec 01 2004 - 21:59:40 MST

This archive was generated by hypermail pre-2.1.9 : Fri Dec 31 2004 - 12:00:04 MST