]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Accept large dates >2^31. Seen for example in the Google logo.
authorserassio <>
Sun, 24 Dec 2006 22:29:43 +0000 (22:29 +0000)
committerserassio <>
Sun, 24 Dec 2006 22:29:43 +0000 (22:29 +0000)
Forward port of 2.6 patch.

lib/rfc1123.c

index 75ee9f6e7cb65a90976c103cf55fddb3604a2a68..eb26f7be83e822f32b60cbabdd66f6698816e32e 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: rfc1123.c,v 1.38 2006/01/22 17:12:52 serassio Exp $
+ * $Id: rfc1123.c,v 1.39 2006/12/24 15:29:43 serassio Exp $
  *
  * DEBUG: 
  * AUTHOR: Harvest Derived
@@ -117,9 +117,7 @@ tmSaneValues(struct tm *tm)
        return 0;
     if (tm->tm_mon < 0 || tm->tm_mon > 11)
        return 0;
-    if (tm->tm_year < 70 || tm->tm_year > 120)
-       return 0;
-    return 1;
+    return mktime(tm) != -1;
 }
 
 static struct tm *