Skip to content
Snippets Groups Projects
Commit 07e641d1 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

DNSSEC: leak fix, close file handle after loading the key

refs #4
parent d18f3ad4
No related branches found
No related tags found
No related merge requests found
......@@ -148,6 +148,7 @@ static int get_key_info_from_public_key(const char *filename,
}
free(buffer);
fclose(keyfile);
if (scanner->r_type != KNOT_RRTYPE_DNSKEY) {
scanner_free(scanner);
......
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