All hashed names consist of the hashed label prepended to the zone name, not to the
closest enclosure.
if (!l)
return -ENOMEM;
- next_closer_domain = strjoin(l, ".", p, NULL);
+ next_closer_domain = strjoin(l, ".", zone, NULL);
if (!next_closer_domain)
return -ENOMEM;
if (!label)
return -ENOMEM;
- next_hashed_domain = strjoin(label, ".", p, NULL);
+ next_hashed_domain = strjoin(label, ".", zone, NULL);
if (!next_hashed_domain)
return -ENOMEM;