Lines Matching defs:dst
76 dns_ipkeylist_t *dst)
81 REQUIRE(dst != NULL);
82 /* dst might be preallocated, we don't care, but it must be empty */
83 REQUIRE(dst->count == 0);
88 result = dns_ipkeylist_resize(mctx, dst, src->count);
92 memmove(dst->addrs, src->addrs, src->count * sizeof(isc_sockaddr_t));
95 memmove(dst->dscps, src->dscps,
102 dst->keys[i] = isc_mem_get(mctx,
104 if (dst->keys[i] == NULL) {
108 dns_name_init(dst->keys[i], NULL);
110 dst->keys[i]);
114 dst->keys[i] = NULL;
122 dst->labels[i] = isc_mem_get(mctx,
124 if (dst->labels[i] == NULL) {
128 dns_name_init(dst->labels[i], NULL);
130 dst->labels[i]);
134 dst->labels[i] = NULL;
138 dst->count = src->count;
143 if (dst->labels[i] != NULL) {
144 if (dns_name_dynamic(dst->labels[i]))
145 dns_name_free(dst->labels[i], mctx);
146 isc_mem_put(mctx, dst->labels[i], sizeof(dns_name_t));
147 dst->labels[i] = NULL;
153 if (dst->keys[i] != NULL) {
154 if (dns_name_dynamic(dst->keys[i]))
155 dns_name_free(dst->keys[i], mctx);
156 isc_mem_put(mctx, dst->keys[i], sizeof(dns_name_t));
157 dst->keys[i] = NULL;