]> git.pld-linux.org Git - packages/squid.git/blame - squid-2.5.STABLE5-range_offset_limit.patch
- fixes CAN-2005-0097
[packages/squid.git] / squid-2.5.STABLE5-range_offset_limit.patch
CommitLineData
d59549ad
AM
1Index: squid/src/cache_cf.c
2diff -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.114751 seconds and 4 git commands to generate.