Commit d6f20660 authored by Daniel Salzman's avatar Daniel Salzman

keymgr: fix config inicialization if --dir specified

parent 60a0b6c5
......@@ -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;
......
Markdown is supported
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