Skip to content
Snippets Groups Projects
Commit 70e4b589 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Fixed leak if failed to parse TSIG key secret.

parent 46b032fc
Branches
Tags
No related merge requests found
......@@ -658,6 +658,8 @@ keys:
k->k.algorithm = $3.alg;
if (knot_binary_from_base64($4.t, &(k->k.secret)) != 0) {
cf_error(scanner, "invalid key secret '%s'", $4.t);
knot_dname_free(&dname);
free(k);
} else {
add_tail(&new_config->keys, &k->n);
++new_config->key_count;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment