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

Fix in zcompile

parent 93420fa6
No related branches found
No related tags found
No related merge requests found
......@@ -1826,9 +1826,6 @@ int zone_read(const char *name, const char *zonefile, const char *outfile,
assert(dnslib_node_parent(origin_node, 0) == NULL);
dnslib_zone_contents_t *contents =
dnslib_zone_get_contents(parser->current_zone);
if (!zone_open(zonefile, 3600, DNSLIB_CLASS_IN, origin_node)) {
strerror_r(errno, ebuf, sizeof(ebuf));
fprintf(stderr, "Cannot open '%s': %s.",
......@@ -1839,6 +1836,9 @@ int zone_read(const char *name, const char *zonefile, const char *outfile,
if (yyparse() != 0) {
return KNOT_ZCOMPILE_ESYNT;
}
dnslib_zone_contents_t *contents =
dnslib_zone_get_contents(parser->current_zone);
if (parser->last_node && parser->node_rrsigs != NULL) {
/* assign rrsigs to last node in the zone*/
......
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