Lines Matching refs:new_zone
612 dns_catz_zone_t *new_zone;
616 new_zone = isc_mem_get(catzs->mctx, sizeof(*new_zone));
617 if (new_zone == NULL)
620 memset(new_zone, 0, sizeof(*new_zone));
622 dns_name_init(&new_zone->name, NULL);
624 result = dns_name_dup(name, catzs->mctx, &new_zone->name);
628 result = isc_ht_init(&new_zone->entries, catzs->mctx, 4);
632 new_zone->updatetimer = NULL;
636 new_zone, &new_zone->updatetimer);
640 isc_time_settoepoch(&new_zone->lastupdated);
641 new_zone->updatepending = ISC_FALSE;
642 new_zone->db = NULL;
643 new_zone->dbversion = NULL;
644 new_zone->catzs = catzs;
645 dns_catz_options_init(&new_zone->defoptions);
646 dns_catz_options_init(&new_zone->zoneoptions);
647 new_zone->active = ISC_TRUE;
648 new_zone->db_registered = ISC_FALSE;
649 new_zone->version = (isc_uint32_t)(-1);
650 isc_refcount_init(&new_zone->refs, 1);
652 *zonep = new_zone;
657 isc_ht_destroy(&new_zone->entries);
659 dns_name_free(&new_zone->name, catzs->mctx);
661 isc_mem_put(catzs->mctx, new_zone, sizeof(*new_zone));
670 dns_catz_zone_t *new_zone = NULL;
684 result = dns_catz_new_zone(catzs, &new_zone, name);
688 result = isc_ht_add(catzs->zones, new_zone->name.ndata,
689 new_zone->name.length, new_zone);
691 dns_catz_zone_detach(&new_zone);
698 name->length, (void **) &new_zone);
699 INSIST(tresult == ISC_R_SUCCESS && !new_zone->active);
700 new_zone->active = ISC_TRUE;
703 *zonep = new_zone;