|
Lines 306-311
ipcacheParse(rfc1035_rr * answers, int n
Link Here
|
| 306 |
continue; |
306 |
continue; |
| 307 |
if (answers[k].class !=3D RFC1035_CLASS_IN) |
307 |
if (answers[k].class !=3D RFC1035_CLASS_IN) |
| 308 |
continue; |
308 |
continue; |
|
|
309 |
if (answers[k].rdlength !=3D 4) { |
| 310 |
debug(14, 1) ("ipcacheParse: Invalid IP address in response to '%s'\n= |
| 311 |
continue; |
| 312 |
} |
| 309 |
na++; |
313 |
na++; |
| 310 |
} |
314 |
} |
| 311 |
if (na =3D=3D 0) { |
315 |
if (na =3D=3D 0) { |
|
Lines 322-330
ipcacheParse(rfc1035_rr * answers, int n
Link Here
|
| 322 |
continue; |
326 |
continue; |
| 323 |
if (answers[k].class !=3D RFC1035_CLASS_IN) |
327 |
if (answers[k].class !=3D RFC1035_CLASS_IN) |
| 324 |
continue; |
328 |
continue; |
|
|
329 |
if (answers[k].rdlength !=3D 4) |
| 330 |
continue; |
| 325 |
if (j =3D=3D 0) |
331 |
if (j =3D=3D 0) |
| 326 |
i.expires =3D squid_curtime + answers[k].ttl; |
332 |
i.expires =3D squid_curtime + answers[k].ttl; |
| 327 |
assert(answers[k].rdlength =3D=3D 4); |
|
|
| 328 |
xmemcpy(&i.addrs.in_addrs[j++], answers[k].rdata, 4); |
333 |
xmemcpy(&i.addrs.in_addrs[j++], answers[k].rdata, 4); |
| 329 |
debug(14, 3) ("ipcacheParse: #%d %s\n", |
334 |
debug(14, 3) ("ipcacheParse: #%d %s\n", |
| 330 |
j - 1, |
335 |
j - 1, |