Skip to content

Commit dfbac23

Browse files
committed
fixup! resolve BUGFIX do not delete false when data when not possible to check when
1 parent f943b49 commit dfbac23

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/parser_xml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ lyd_parse_xml(struct ly_ctx *ctx, struct lyxml_elem **root, int options, ...)
605605
if (options & LYD_OPT_NOEXTDEPS) {
606606
LOGERR(LY_EINVAL, "%s: invalid parameter (variable arg const struct lyd_node *data_tree and LYD_OPT_NOEXTDEPS set).",
607607
__func__);
608-
goto cleanup;
608+
goto error;
609609
}
610610

611611
LY_TREE_FOR((struct lyd_node *)data_tree, iter) {

src/tree_data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4165,7 +4165,7 @@ lyd_validate(struct lyd_node **node, int options, void *var_arg)
41654165
/* get the additional data tree if given */
41664166
data_tree = (struct lyd_node *)var_arg;
41674167
if (data_tree) {
4168-
else if (options & LYD_OPT_NOEXTDEPS) {
4168+
if (options & LYD_OPT_NOEXTDEPS) {
41694169
LOGERR(LY_EINVAL, "%s: invalid parameter (variable arg const struct lyd_node *data_tree and LYD_OPT_NOEXTDEPS set).",
41704170
__func__);
41714171
goto cleanup;

0 commit comments

Comments
 (0)