Skip to content
Permalink
Browse files

xml printer BUGFIX parse lyb anydata as trusted

There can be anything and, for example, for filtered get
replies all constraints can be broken.

Fixes sysrepo/sysrepo#1598
  • Loading branch information...
michalvasko committed Sep 11, 2019
1 parent e312a15 commit 3f117e2a8125cbd4b6de6f91a5608cc40a029058
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/printer_xml.c
@@ -549,7 +549,8 @@ xml_print_anydata(struct lyout *out, int level, const struct lyd_node *node, int
} else {
if (any->value_type == LYD_ANYDATA_LYB) {
/* parse into a data tree */
iter = lyd_parse_mem(node->schema->module->ctx, any->value.mem, LYD_LYB, LYD_OPT_DATA | LYD_OPT_STRICT, NULL);
iter = lyd_parse_mem(node->schema->module->ctx, any->value.mem, LYD_LYB, LYD_OPT_DATA | LYD_OPT_STRICT
| LYD_OPT_TRUSTED, NULL);
if (iter) {
/* successfully parsed */
free(any->value.mem);

0 comments on commit 3f117e2

Please sign in to comment.
You can’t perform that action at this time.