Commit 873c8c4d authored by Jan Včelák's avatar Jan Včelák 🚀

KASP dir: fix crash when policy name in zone is malformed

parent 4d095cd8
......@@ -304,7 +304,7 @@ static int parse_zone_config(dnssec_kasp_zone_t *zone, json_t *config)
char *policy = NULL;
json_t *json_policy = json_object_get(config, "policy");
if (json_policy && !json_is_null(json_policy)) {
if (json_policy && json_is_string(json_policy)) {
policy = strdup(json_string_value(json_policy));
if (!policy) {
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