]> git.pld-linux.org Git - packages/squid.git/blame - squid-2.5.STABLE2-dns_root_label.patch
- renumbered patches
[packages/squid.git] / squid-2.5.STABLE2-dns_root_label.patch
CommitLineData
b0d8e994
MW
1Index: squid/lib/rfc1035.c
2diff -c squid/lib/rfc1035.c:1.22.2.3 squid/lib/rfc1035.c:1.22.2.4
3*** squid/lib/rfc1035.c:1.22.2.3 Wed Apr 10 15:33:21 2002
4--- squid/lib/rfc1035.c Fri Apr 25 06:09:57 2003
5***************
6*** 345,351 ****
7 *(name + (no++)) = '.';
8 }
9 } while (c > 0 && no < ns);
10! *(name + no - 1) = '\0';
11 /* make sure we didn't allow someone to overflow the name buffer */
12 assert(no <= ns);
13 return 0;
14--- 345,354 ----
15 *(name + (no++)) = '.';
16 }
17 } while (c > 0 && no < ns);
18! if (no)
19! *(name + no - 1) = '\0';
20! else
21! *name = '\0';
22 /* make sure we didn't allow someone to overflow the name buffer */
23 assert(no <= ns);
24 return 0;
This page took 0.073165 seconds and 4 git commands to generate.