Skip to content
Snippets Groups Projects
Commit f17c1c82 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

Disabled DNAME duplication handling.

parent 9d4ce9f3
No related branches found
No related tags found
No related merge requests found
......@@ -189,18 +189,18 @@ static void knot_zone_contents_adjust_rdata_dname(knot_zone_contents_t *zone,
knot_node_t *node,
knot_dname_t **in_dname)
{
assert(in_dname && *in_dname);
/* First thing - make sure dname is not duplicated. */
knot_dname_t *found_dname = hattrie_get_dname(lookup_tree, *in_dname);
if (found_dname != NULL && found_dname != *in_dname) {
/* Duplicate. */
knot_dname_release(*in_dname);
*in_dname = found_dname;
} else {
assert(found_dname == NULL || found_dname == *in_dname);
/* Into the tree it goes. */
hattrie_insert_dname(lookup_tree, *in_dname);
}
// assert(in_dname && *in_dname);
// /* First thing - make sure dname is not duplicated. */
// knot_dname_t *found_dname = hattrie_get_dname(lookup_tree, *in_dname);
// if (found_dname != NULL && found_dname != *in_dname) {
// /* Duplicate. */
// knot_dname_release(*in_dname);
// *in_dname = found_dname;
// } else {
// assert(found_dname == NULL || found_dname == *in_dname);
// /* Into the tree it goes. */
// hattrie_insert_dname(lookup_tree, *in_dname);
// }
knot_dname_t *dname = *in_dname;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment