Skip to content
Snippets Groups Projects
Commit 3cc661c4 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

handlers/load: fix uninitialized memory access if invalid zone file

parent 1604e0f1
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,8 @@ int event_load(conf_t *conf, zone_t *zone)
{
assert(zone);
zone_contents_t *contents = NULL;
/* Take zone file mtime and load it. */
time_t mtime;
char *filename = conf_zonefile(conf, zone->name);
......@@ -39,7 +41,6 @@ int event_load(conf_t *conf, zone_t *zone)
uint32_t dnssec_refresh = time(NULL);
zone_contents_t *contents = NULL;
ret = zone_load_contents(conf, zone->name, &contents);
if (ret != KNOT_EOK) {
goto fail;
......
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