commit | 4b9e105db1d9857439593cb2ac83fd3cfa92697b | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Fri Sep 13 11:25:37 2019 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Fri Sep 13 11:25:37 2019 +0200 |
tree | 50883be02a2bd9503d2a2af82cbb4f4339e30607 | |
parent | 73fc574c476022d602fa01a44eda792b74be04cc [diff] |
xpath BUGFIX null dereference
diff --git a/src/xpath.c b/src/xpath.c index da661a9..23fae94 100644 --- a/src/xpath.c +++ b/src/xpath.c
@@ -7202,7 +7202,7 @@ print_token(exp->tokens[*exp_idx]), exp->tok_pos[*exp_idx]); ++(*exp_idx); - if (exp_check_token(set->ctx, exp, *exp_idx, LYXP_TOKEN_NONE, 0)) { + if (exp_check_token(set ? set->ctx : NULL, exp, *exp_idx, LYXP_TOKEN_NONE, 0)) { return LY_SUCCESS; } switch (exp->tokens[*exp_idx]) {