commit | 4754d4ae5a9aa6f65f4e9a3a02ef471f87973c37 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Dec 01 10:11:21 2022 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Dec 01 15:56:59 2022 +0100 |
tree | 08b13d0901b0c768f6928f7d23d50086e83783c8 | |
parent | 4226621ef4b3f25b7ba7fce033a5ba01d2051fec [diff] [blame] |
tree data UPDATE updating NP cont dflt flag
diff --git a/src/parser_common.c b/src/parser_common.c index cd32300..cf509ca 100644 --- a/src/parser_common.c +++ b/src/parser_common.c
@@ -266,10 +266,13 @@ /* delete the metadata */ if (prev_meta) { prev_meta->next = meta2->next; - } else { + } else if (meta != &node->meta) { *meta = (*meta)->next; } lyd_free_meta_single(meta2); + + /* update dflt flag for all parent NP containers */ + lyd_cont_set_dflt(lyd_parent(node)); break; }