Skip to content

Commit 0b877d5

Browse files
committed
validation BUGFIX unresolved when on multi-error
1 parent 64eb14a commit 0b877d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ lyd_validate_unres(struct lyd_node **tree, const struct lys_module *mod, enum ly
371371
} while (prev_count > node_when->count);
372372

373373
/* there could have been no cyclic when dependencies, checked during compilation */
374-
assert(!node_when->count);
374+
assert(!node_when->count || ((rc == LY_EVALID) && (val_opts & LYD_VALIDATE_MULTI_ERROR)));
375375
}
376376

377377
if (node_types && node_types->count) {

0 commit comments

Comments
 (0)