commit | 1ef66d46d3878448da74d7e2a1261ced4ad27b14 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Dec 14 11:41:18 2023 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Dec 14 11:41:18 2023 +0100 |
tree | 85f4e4e3e8a0b588234c9175b843191425c9ce14 | |
parent | 6034142ec1f02569047311f756d13bac63a058af [diff] |
xpath BUGFIX opaque node handling Fixes #2144
diff --git a/src/xpath.c b/src/xpath.c index 06c44df..bee8e2c 100644 --- a/src/xpath.c +++ b/src/xpath.c
@@ -1482,7 +1482,7 @@ LYD_TREE_DFS_continue = 0; } - if ((root_type == LYXP_NODE_ROOT_CONFIG) && (elem->schema->flags & LYS_CONFIG_R)) { + if ((root_type == LYXP_NODE_ROOT_CONFIG) && elem->schema && (elem->schema->flags & LYS_CONFIG_R)) { /* skip */ LYD_TREE_DFS_continue = 1; } else {