commit | e92637f1c9491ff0e3590df0628d161ea7610cb1 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue Oct 11 08:18:14 2022 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Oct 11 08:18:14 2022 +0200 |
tree | 773fbd52a7e66665be0521aabb92bd5180dffdd9 | |
parent | 55872041266f9c5cb054775302bef512d28b4084 [diff] |
plugins types BUGFIX leafref can match several data nodes Fixes sysrepo/sysrepo#2930
diff --git a/src/plugins_types.c b/src/plugins_types.c index 6d83ca7..67f1cdd 100644 --- a/src/plugins_types.c +++ b/src/plugins_types.c
@@ -1005,8 +1005,7 @@ /* check the result */ if (target_path) { - /* no or exact match */ - assert(!set.used || (set.used == 1)); + /* no or exact match(es) */ i = 0; } else { /* check whether any matches */