mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-29 10:59:35 -05:00
fix layout.
git-svn-id: file:///svn/unbound/trunk@4058 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
a83c7764f5
commit
cc31f2f6e9
1 changed files with 8 additions and 9 deletions
|
|
@ -1294,19 +1294,18 @@ anchor_list_keytags(struct trust_anchor* ta, uint16_t* list, int num)
|
|||
if(ta->numDS != 0 && ta->ds_rrset) {
|
||||
struct packed_rrset_data* d=(struct packed_rrset_data*)
|
||||
ta->ds_rrset->entry.data;
|
||||
for(i=0; i<d->count; i++) {
|
||||
if(ret == num) continue;
|
||||
list[ret++] = ds_get_keytag(ta->ds_rrset, i);
|
||||
}
|
||||
for(i=0; i<d->count; i++) {
|
||||
if(ret == num) continue;
|
||||
list[ret++] = ds_get_keytag(ta->ds_rrset, i);
|
||||
}
|
||||
}
|
||||
if(ta->numDNSKEY != 0 && ta->dnskey_rrset) {
|
||||
struct packed_rrset_data* d=(struct packed_rrset_data*)
|
||||
ta->dnskey_rrset->entry.data;
|
||||
for(i=0; i<d->count; i++) {
|
||||
if(ret == num) continue;
|
||||
list[ret++] = dnskey_calc_keytag(
|
||||
ta->dnskey_rrset, i);
|
||||
}
|
||||
for(i=0; i<d->count; i++) {
|
||||
if(ret == num) continue;
|
||||
list[ret++] = dnskey_calc_keytag(ta->dnskey_rrset, i);
|
||||
}
|
||||
}
|
||||
qsort(list, ret, sizeof(*list), keytag_compare);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue