2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

initialize a6 chain correctly before copying

This commit is contained in:
Bob Halley
1999-10-30 03:41:34 +00:00
parent 5d397cd3a9
commit c8b60c24ab

View File

@@ -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;