Skip to content

Commit 21cf47d

Browse files
committed
xpath BUGFIX return value changed
1 parent 3c5ad97 commit 21cf47d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/xpath.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Michal Vasko <mvasko@cesnet.cz>
44
* @brief YANG XPath evaluation functions
55
*
6-
* Copyright (c) 2015 - 2022 CESNET, z.s.p.o.
6+
* Copyright (c) 2015 - 2026 CESNET, z.s.p.o.
77
*
88
* This source code is licensed under BSD 3-Clause License (the "License").
99
* You may not use this file except in compliance with the License.
@@ -5003,14 +5003,14 @@ xpath_re_match(struct lyxp_set **args, uint32_t UNUSED(arg_count), struct lyxp_s
50035003
LOG_LOCBACK(0, 1);
50045004
}
50055005

5006-
if (rc && (rc != LY_EVALID)) {
5006+
if (rc && (rc != LY_ENOT)) {
50075007
/* error */
50085008
ly_err_print(set->ctx, err);
50095009
ly_err_free(err);
50105010
return rc;
50115011
}
50125012

5013-
if (rc == LY_EVALID) {
5013+
if (rc == LY_ENOT) {
50145014
ly_err_free(err);
50155015
set_fill_boolean(set, 0);
50165016
} else {

0 commit comments

Comments
 (0)