Skip to content
Snippets Groups Projects
Commit 7f71c95b authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

knsupdate: error message if the key cannot be processed

closes #2377
parent d033efad
No related branches found
No related tags found
No related merge requests found
......@@ -364,5 +364,11 @@ int params_parse_keyfile(const char *value, knot_key_params_t *key_params)
knot_free_key_params(key_params);
}
return knot_load_key_params(value, key_params);
int result = knot_load_key_params(value, key_params);
if (result != KNOT_EOK) {
ERR("could not read key file: %s\n", knot_strerror(result));
return KNOT_EINVAL;
}
return KNOT_EOK;
}
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