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

keymgr: fix config inicialization if --dir specified

parent 60a0b6c5
No related branches found
No related tags found
1 merge request!543DNSSEC policy in configuration
......@@ -52,10 +52,6 @@ static int options_init_modern(options_t *options)
{
assert(options);
if (options->kasp_dir) {
return DNSSEC_EOK;
}
if (options->config != NULL && options->confdb != NULL) {
error("Ambiguous configuration source.");
return DNSSEC_EINVAL;
......@@ -64,7 +60,9 @@ static int options_init_modern(options_t *options)
// Choose the optimal config source.
struct stat st;
bool import = false;
if (options->confdb != NULL) {
if (options->kasp_dir != NULL) {
import = false;
} else if (options->confdb != NULL) {
import = false;
} else if (options->config != NULL) {
import = true;
......
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