]> git.pld-linux.org Git - packages/squid.git/blob - squid-2.5.STABLE5-range_offset_limit.patch
- updated to 2.5.STABLE13
[packages/squid.git] / squid-2.5.STABLE5-range_offset_limit.patch
1 Index: squid/src/cache_cf.c
2 diff -c squid/src/cache_cf.c:1.396.2.16 squid/src/cache_cf.c:1.396.2.17
3 *** squid/src/cache_cf.c:1.396.2.16     Sat Dec  6 10:19:36 2003
4 --- squid/src/cache_cf.c        Thu Apr 29 17:56:50 2004
5 ***************
6 *** 502,507 ****
7 --- 502,511 ----
8         self_destruct();
9       if ((token = strtok(NULL, w_space)) == NULL)
10         self_destruct();
11 +     if (strcmp(token, "none") == 0 || strcmp(token, "-1") == 0) {
12 +       *bptr = (size_t) - 1;
13 +       return;
14 +     }
15       d = atof(token);
16       m = u;                    /* default to 'units' if none specified */
17       if (0.0 == d)
This page took 0.027303 seconds and 3 git commands to generate.