Skip to content

Commit ce38b35

Browse files
committed
structure BUGFIX check for data-def-stmt
Fixes #2377
1 parent 253d262 commit ce38b35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plugins_exts/structure.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ structure_aug_parse(struct lysp_ctx *pctx, struct lysp_ext_instance *ext)
318318

319319
/* augment-structure must define some data-def-stmt */
320320
LY_LIST_FOR(ext->child, stmt) {
321-
if (stmt->kw & LY_STMT_DATA_NODE_MASK) {
321+
if (stmt->kw & (LY_STMT_CONTAINER | LY_STMT_LEAF | LY_STMT_LEAF_LIST | LY_STMT_LIST | LY_STMT_CHOICE |
322+
LY_STMT_ANYDATA | LY_STMT_ANYXML | LY_STMT_USES)) {
322323
break;
323324
}
324325
}

0 commit comments

Comments
 (0)