]> git.pld-linux.org Git - packages/squid.git/commitdiff
bdb1b7fea05616286f6ca30057201bab squid-2.4.stable1-wrong_sign_on_timestamp_check...
authormkochano <mkochano@pld-linux.org>
Sun, 22 Apr 2001 21:46:43 +0000 (21:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    squid-2.4.stable1-wrong_sign_on_timestamp_check.patch -> 1.1

squid-2.4.stable1-wrong_sign_on_timestamp_check.patch [new file with mode: 0644]

diff --git a/squid-2.4.stable1-wrong_sign_on_timestamp_check.patch b/squid-2.4.stable1-wrong_sign_on_timestamp_check.patch
new file mode 100644 (file)
index 0000000..3fa4204
--- /dev/null
@@ -0,0 +1,25 @@
+Index: src/store.c
+===================================================================
+RCS file: /server/cvs-server/squid/squid/src/store.c,v
+retrieving revision 1.531.2.4
+retrieving revision 1.531.2.5
+diff -c -r1.531.2.4 -r1.531.2.5
+*** src/store.c        2001/02/22 20:53:31     1.531.2.4
+--- src/store.c        2001/03/23 20:19:44     1.531.2.5
+***************
+*** 1033,1039 ****
+       * squid_curtime because it results in a negative served_date.
+       */
+      if (age > squid_curtime - served_date)
+!      if (squid_curtime < age)
+           served_date = squid_curtime - age;
+      entry->expires = reply->expires;
+      entry->lastmod = reply->last_modified;
+--- 1033,1039 ----
+       * squid_curtime because it results in a negative served_date.
+       */
+      if (age > squid_curtime - served_date)
+!      if (squid_curtime > age)
+           served_date = squid_curtime - age;
+      entry->expires = reply->expires;
+      entry->lastmod = reply->last_modified;
This page took 0.0985 seconds and 4 git commands to generate.