Skip to content

Commit

Permalink
libyang BUGFIX don't access LYS_EXT ->parent
Browse files Browse the repository at this point in the history
In lys_is_disabled() we must stop iterating to ->parent when we are on a
LYS_EXT node because its parent pointer is not a lys_node.  This fixes
the Debian unit test failures on big-endian systems.
  • Loading branch information
eqvinox committed Dec 5, 2018
1 parent 503d172 commit 1c19bcd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tree_schema.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ lys_is_disabled(const struct lys_node *node, int recursive)
/* unresolved augment, let's say it's enabled */
return NULL;
}
} else if (node->nodetype == LYS_EXT) {
return NULL;
} else if (node->parent) {
node = node->parent;
} else {
Expand Down

0 comments on commit 1c19bcd

Please sign in to comment.