]>
Commit | Line | Data |
---|---|---|
6feaf47e JB |
1 | Index: squid/lib/rfc1035.c |
2 | diff -c squid/lib/rfc1035.c:1.22.2.5 squid/lib/rfc1035.c:1.22.2.6 | |
3 | *** squid/lib/rfc1035.c:1.22.2.5 Sun Apr 11 03:14:52 2004 | |
4 | --- squid/lib/rfc1035.c Sun Jan 16 19:00:30 2005 | |
5 | *************** | |
6 | *** 554,564 **** | |
7 | return -rfc1035_unpack_error; | |
8 | } | |
9 | } | |
10 | ! i = (int) hdr.ancount; | |
11 | ! if (i == 0) | |
12 | return 0; | |
13 | ! recs = calloc(i, sizeof(*recs)); | |
14 | ! while (i--) { | |
15 | if (off >= sz) { /* corrupt packet */ | |
16 | RFC1035_UNPACK_DEBUG; | |
17 | break; | |
18 | --- 554,563 ---- | |
19 | return -rfc1035_unpack_error; | |
20 | } | |
21 | } | |
22 | ! if (hdr.ancount == 0) | |
23 | return 0; | |
24 | ! recs = calloc((int)hdr.ancount, sizeof(*recs)); | |
25 | ! for (i = 0; i < (int)hdr.ancount; i++) { | |
26 | if (off >= sz) { /* corrupt packet */ | |
27 | RFC1035_UNPACK_DEBUG; | |
28 | break; |