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

Change order of variable usage

Coverity scan #970819 (Use after free)
parent 2f5020a1
No related branches found
No related tags found
No related merge requests found
......@@ -274,8 +274,8 @@ int params_parse_tsig(const char *value, knot_key_t *key)
DBG("%s: parsed algorithm '%s'\n", __func__, h);
key->algorithm = alg->id;
} else {
free(h);
ERR("invalid TSIG algorithm name '%s'\n", h);
free(h);
return KNOT_EINVAL;
}
} else {
......
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