commit | 2416fdd7f14135d3bfbb6ba43df72475ffe6c3f1 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Fri Oct 01 11:07:10 2021 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Fri Oct 01 11:07:10 2021 +0200 |
tree | 9b56dab3d60cc24a844e393916b537cecdcd1c0e | |
parent | ae9fb627d3325899a028f12c56e9a3712ee76754 [diff] [blame] |
xpath BUGFIX all node types must be in the hash table Fixes sysrepo/sysrepo#2592
diff --git a/src/xpath.c b/src/xpath.c index 9f4d173..9491ddb 100644 --- a/src/xpath.c +++ b/src/xpath.c
@@ -1211,9 +1211,8 @@ set->val.nodes[idx].pos = pos; ++set->used; - if (set->val.nodes[idx].type == LYXP_NODE_ELEM) { - set_insert_node_hash(set, (struct lyd_node *)node, node_type); - } + /* add into hash table */ + set_insert_node_hash(set, (struct lyd_node *)node, node_type); } LY_ERR