Commit a03c356a authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman
Browse files

keymgr: default timers for in case missing in bind format

parent 1a69e004
......@@ -212,7 +212,7 @@ int bind_privkey_parse(const char *filename, bind_privkey_t *params_ptr)
return DNSSEC_NOT_FOUND;
}
bind_privkey_t params = { 0 };
bind_privkey_t params = *params_ptr;
_cleanup_free_ char *line = NULL;
size_t size = 0;
......
......@@ -373,7 +373,7 @@ int keymgr_import_bind(kdnssec_ctx_t *ctx, const char *import_file, bool pub_onl
}
if (!pub_only) {
bind_privkey_t bpriv = { 0 };
bind_privkey_t bpriv = { .time_publish = ctx->now, .time_activate = ctx->now };
char *privname = gen_keyfilename(import_file, ".private", ".key");
if (privname == NULL) {
......
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