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 authored and michalvasko committed Jul 4, 2023
1 parent ac2c282 commit cd7e4ad
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 cd7e4ad

Please sign in to comment.