|
Lines 288-294
Link Here
|
| 288 |
rrset->rri_nrdatas = count_dns_rr(response->answer, rrset->rri_rdclass, |
288 |
rrset->rri_nrdatas = count_dns_rr(response->answer, rrset->rri_rdclass, |
| 289 |
rrset->rri_rdtype); |
289 |
rrset->rri_rdtype); |
| 290 |
rrset->rri_nsigs = count_dns_rr(response->answer, rrset->rri_rdclass, |
290 |
rrset->rri_nsigs = count_dns_rr(response->answer, rrset->rri_rdclass, |
| 291 |
T_SIG); |
291 |
T_RRSIG); |
| 292 |
|
292 |
|
| 293 |
/* allocate memory for answers */ |
293 |
/* allocate memory for answers */ |
| 294 |
rrset->rri_rdatas = calloc(rrset->rri_nrdatas, |
294 |
rrset->rri_rdatas = calloc(rrset->rri_nrdatas, |
|
Lines 318-324
Link Here
|
| 318 |
rdata = &rrset->rri_rdatas[index_ans++]; |
318 |
rdata = &rrset->rri_rdatas[index_ans++]; |
| 319 |
|
319 |
|
| 320 |
if (rr->class == rrset->rri_rdclass && |
320 |
if (rr->class == rrset->rri_rdclass && |
| 321 |
rr->type == T_SIG) |
321 |
rr->type == T_RRSIG) |
| 322 |
rdata = &rrset->rri_sigs[index_sig++]; |
322 |
rdata = &rrset->rri_sigs[index_sig++]; |
| 323 |
|
323 |
|
| 324 |
if (rdata) { |
324 |
if (rdata) { |