Skip to content
Snippets Groups Projects
Commit 845eaab5 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

config: fixed rules parsing, cleanup

parent 5707d9b8
No related branches found
No related tags found
1 merge request!202Query plan modules + synthetic PTR/A/AAAA records
......@@ -888,7 +888,7 @@ zone_synth_addr:
;
zone_synth:
| FORWARD TEXT zone_synth_addr zone_synth_ttl { synth_tpl_define(scanner, SYNTH_FORWARD, $2.t); }
FORWARD TEXT zone_synth_addr zone_synth_ttl { synth_tpl_define(scanner, SYNTH_FORWARD, $2.t); }
| REVERSE TEXT zone_synth_addr zone_synth_ttl { synth_tpl_define(scanner, SYNTH_REVERSE, $2.t); }
;
......
......@@ -30,6 +30,7 @@
#include "knot/conf/extra.h"
#include "knot/knot.h"
#include "knot/ctl/remote.h"
#include "knot/nameserver/synth_record.h"
/*
* Defaults.
......@@ -980,6 +981,13 @@ void conf_free_zone(conf_zone_t *zone)
WALK_LIST_FREE(zone->acl.notify_out);
WALK_LIST_FREE(zone->acl.update_in);
/* Free answer synthesis rule list. */
synth_template_t *tpl = NULL, *tpl_next = NULL;
WALK_LIST_DELSAFE(tpl, tpl_next, zone->synth_templates) {
free(tpl->format);
free(tpl);
}
free(zone->name);
free(zone->file);
free(zone->ixfr_db);
......
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