commit | bc9f76ff8ca4710b631fa901e62aed42ce73e4eb | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Dec 01 10:31:38 2022 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Dec 01 15:56:59 2022 +0100 |
tree | 46b4579de19248bb0fc5db49b3f1b9831a63f582 | |
parent | 6f39c821e1a7eb793d63d83131e4468a22cff2a8 [diff] [blame] |
parser data FEATURE flag to parse validated data
diff --git a/src/parser_common.c b/src/parser_common.c index cf509ca..765ef5a 100644 --- a/src/parser_common.c +++ b/src/parser_common.c
@@ -246,6 +246,10 @@ struct lyd_meta *meta2, *prev_meta = NULL; struct lyd_ctx_ext_val *ext_val; + if (lydctx->parse_opts & LYD_PARSE_NO_NEW) { + node->flags &= ~LYD_NEW; + } + if (lysc_has_when(node->schema)) { if (lydctx->parse_opts & LYD_PARSE_WHEN_TRUE) { /* the condition was true before */