summaryrefslogtreecommitdiffstats
path: root/runtime/msg.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-10-21 11:57:11 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-10-21 11:57:11 +0200
commit0af5062e9a94d17653818c3a220a1f97cdf9f005 (patch)
tree4b23c2d85affebc10a3805a7b7cfadc2de859e77 /runtime/msg.c
parente5bf0324acc5f9fc1209d2659fa3b86436da19dc (diff)
downloadrsyslog-0af5062e9a94d17653818c3a220a1f97cdf9f005.tar.gz
rsyslog-0af5062e9a94d17653818c3a220a1f97cdf9f005.tar.bz2
rsyslog-0af5062e9a94d17653818c3a220a1f97cdf9f005.zip
regression fix: global variable access did not work
Diffstat (limited to 'runtime/msg.c')
-rw-r--r--runtime/msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/msg.c b/runtime/msg.c
index 991da436..e159bba9 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -2556,8 +2556,8 @@ getJSONPropVal(struct json_object *jroot, es_str_t *propName, uchar **pRes, rs_s
field = jroot;
} else {
name = (uchar*)es_str2cstr(propName, NULL);
- leaf = jsonPathGetLeaf(name, ustrlen(name));
- CHKiRet(jsonPathFindParent(jroot, name, leaf, &parent, 1));
+ leaf = jsonPathGetLeaf(name+1, ustrlen(name-1));
+ CHKiRet(jsonPathFindParent(jroot, name+1, leaf, &parent, 1));
field = json_object_object_get(parent, (char*)leaf);
}
if(field != NULL) {