From: Libor Peltan Date: Wed, 25 Sep 2019 16:11:21 +0000 (+0200) Subject: axfr: adjust flags before semantic check X-Git-Tag: v2.9.0~63^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=721105442fd1782630fc8a045a5dfd970539e090;p=thirdparty%2Fknot-dns.git axfr: adjust flags before semantic check --- diff --git a/src/knot/events/handlers/refresh.c b/src/knot/events/handlers/refresh.c index 0ceb2909f9..68418604ce 100644 --- a/src/knot/events/handlers/refresh.c +++ b/src/knot/events/handlers/refresh.c @@ -29,6 +29,7 @@ #include "knot/query/query.h" #include "knot/query/requestor.h" #include "knot/updates/changesets.h" +#include "knot/zone/adjust.h" #include "knot/zone/serial.h" #include "knot/zone/zone.h" #include "knot/zone/zonefile.h" @@ -251,7 +252,10 @@ static int axfr_finalize(struct refresh_data *data) { zone_contents_t *new_zone = data->axfr.zone; - int ret = xfr_validate(new_zone, data); + int ret = zone_adjust_contents(new_zone, adjust_cb_flags, NULL, false, NULL); // adjust_cb_nsec3_pointer not needed as we don't check DNSSEC in xfr_validate() + if (ret == KNOT_EOK) { + ret = xfr_validate(new_zone, data); + } if (ret != KNOT_EOK) { return ret; }