mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-02 05:20:33 -05:00
initialize a6 chain correctly before copying
This commit is contained in:
parent
5d397cd3a9
commit
c8b60c24ab
1 changed files with 2 additions and 3 deletions
|
|
@ -1308,11 +1308,10 @@ new_adbfetch6(dns_adb_t *adb, dns_adbname_t *name, dns_a6context_t *a6ctx)
|
|||
|
||||
dns_rdataset_init(&f->rdataset);
|
||||
|
||||
dns_a6_init(&f->a6ctx, a6find, NULL, import_a6,
|
||||
a6missing, name);
|
||||
if (a6ctx != NULL)
|
||||
dns_a6_copy(a6ctx, &f->a6ctx);
|
||||
else
|
||||
dns_a6_init(&f->a6ctx, a6find, NULL, import_a6,
|
||||
a6missing, name);
|
||||
|
||||
f->magic = DNS_ADBFETCH6_MAGIC;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue