Skip to content
Snippets Groups Projects
Commit 36183668 authored by Lubos Slovak's avatar Lubos Slovak
Browse files

Fixed temp domain name chopping

parent 57f0e1d8
No related branches found
No related tags found
Loading
......@@ -1690,11 +1690,11 @@ const knot_node_t *knot_zone_contents_find_previous_nsec3(
static void knot_zone_contents_left_chop(char *name, size_t *size)
{
int i = 0;
while (name[i] != '.') {
++i;
}
memmove(name, name + i + 1, *size - i - 1);
*size = *size - i - 1;
short label_size = name[0];
memmove(name, name + label_size + 1, *size -label_size - 1);
*size = *size - label_size - 1;
}
/*----------------------------------------------------------------------------*/
......
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