schema tree BUGFIX returning to parent from inout node
@@ -229,7 +229,13 @@ struct ly_set;
} \
while (!(LYSC_TREE_DFS_next)) { \
/* parent is already processed, go to its sibling */ \
+ if ((ELEM)->nodetype == LYS_INPUT) { \
+ (ELEM) = (struct lysc_node *)(((char *)(ELEM)) - offsetof(struct lysc_action, input)); \
+ } else if ((ELEM)->nodetype == LYS_OUTPUT) { \
+ (ELEM) = (struct lysc_node *)(((char *)(ELEM)) - offsetof(struct lysc_action, output)); \
+ } else { \
(ELEM) = (ELEM)->parent; \
+ } \
/* no siblings, go back through parents */ \
if ((ELEM) == (struct lysc_node *)(START)) { \
/* we are done, no next element to process */ \
