Skip to content
Snippets Groups Projects
Commit 6cea23d7 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

rename xfrin_handle_error -> xfrin_log_error

parent cc59d79c
No related branches found
No related tags found
No related merge requests found
......@@ -321,9 +321,9 @@ static int xfrin_insert_rrset_dnames_to_table(knot_rrset_t *rrset,
return KNOT_EOK;
}
static void xfrin_handle_error(const knot_dname_t *zone_owner,
const knot_dname_t *rr_owner,
int ret)
static void xfrin_log_error(const knot_dname_t *zone_owner,
const knot_dname_t *rr_owner,
int ret)
{
char *zonename = knot_dname_to_str(zone_owner);
if (ret == KNOT_EOUTOFZONE) {
......@@ -638,8 +638,8 @@ dbg_xfrin_exec(
if (!knot_dname_is_subdomain(rr->owner, xfr->zone->name) &&
knot_dname_compare_non_canon(rr->owner, xfr->zone->name) != 0) {
// Out-of-zone data
xfrin_handle_error(xfr->zone->name, rr->owner,
KNOT_EOUTOFZONE);
xfrin_log_error(xfr->zone->name, rr->owner,
KNOT_EOUTOFZONE);
knot_rrset_deep_free(&rr, 1, 1);
ret = knot_packet_parse_next_rr_answer(packet, &rr);
continue;
......@@ -1128,7 +1128,8 @@ dbg_xfrin_exec_verb(
if (!knot_dname_is_subdomain(rr->owner, xfr->zone->name) &&
knot_dname_compare_non_canon(rr->owner, xfr->zone->name) != 0) {
// out-of-zone domain
xfrin_handle_error(xfr->zone->name, rr->owner, KNOT_EOUTOFZONE);
xfrin_log_error(xfr->zone->name, rr->owner,
KNOT_EOUTOFZONE);
knot_rrset_deep_free(&rr, 1, 1);
// Skip this rr
ret = knot_packet_parse_next_rr_answer(packet, &rr);
......
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