Skip to content

Commit

Permalink
nacm BUGFIX extension records
Browse files Browse the repository at this point in the history
... can only have the same addresses thanks to translator optimization.
So it cannot be relied upon.
  • Loading branch information
lePici committed Jul 4, 2023
1 parent 24770dd commit 22bcc99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins_exts/nacm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 22bcc99

Please sign in to comment.