Skip to content
Snippets Groups Projects
Commit ad7b4325 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

Added check for non-existing file to zone-load.

parent 74bd0a27
No related branches found
No related tags found
No related merge requests found
......@@ -457,6 +457,11 @@ dnslib_zone_t *dnslib_zload_load(const char *filename)
{
FILE *f = fopen(filename, "rb");
if (f == NULL) {
log_error("Could not open file '%s'\n", filename);
return NULL;
}
dnslib_node_t *tmp_node;
uint node_count;
......
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