diff options
Diffstat (limited to 'src/plugins_exts')
-rw-r--r-- | src/plugins_exts/nacm.c | 2 | ||||
-rw-r--r-- | src/plugins_exts/schema_mount.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins_exts/nacm.c b/src/plugins_exts/nacm.c index 5ab8daa..df49721 100644 --- a/src/plugins_exts/nacm.c +++ b/src/plugins_exts/nacm.c @@ -101,7 +101,7 @@ nacm_parse(struct lysp_ctx *pctx, struct lysp_ext_instance *ext) /* check for duplication */ LY_ARRAY_FOR(parent->exts, u) { - if ((&parent->exts[u] != ext) && parent->exts[u].record && (parent->exts[u].record->plugin.id == ext->record->plugin.id)) { + if ((&parent->exts[u] != ext) && parent->exts[u].record && !strcmp(parent->exts[u].record->plugin.id, ext->record->plugin.id)) { /* duplication of a NACM extension on a single node * We check for all NACM plugins since we want to catch even the situation that there is default-deny-all * AND default-deny-write */ diff --git a/src/plugins_exts/schema_mount.c b/src/plugins_exts/schema_mount.c index 9800760..cc63431 100644 --- a/src/plugins_exts/schema_mount.c +++ b/src/plugins_exts/schema_mount.c @@ -982,7 +982,7 @@ schema_mount_validate(struct lysc_ext_instance *ext, struct lyd_node *sibling, c if (!err) { lyplg_ext_compile_log(NULL, ext, LY_LLERR, ret, "Unknown validation error (err code %d).", ret); } else { - lyplg_ext_compile_log_path(err->path, ext, LY_LLERR, err->no, "%s", err->msg); + lyplg_ext_compile_log_err(err, ext); } goto cleanup; } |