summaryrefslogtreecommitdiffstats
path: root/runtime/msg.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-07-17 12:52:47 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-07-17 12:52:47 +0200
commitb6d843ab50b4a84beebfc3474cc8b1b1dabc6f26 (patch)
treea8e14499e43acc0f36d3d822164ec08c1c85ea75 /runtime/msg.c
parent1c6449022c423c13a8828028cb68afe30e3c2f46 (diff)
downloadrsyslog-b6d843ab50b4a84beebfc3474cc8b1b1dabc6f26.tar.gz
rsyslog-b6d843ab50b4a84beebfc3474cc8b1b1dabc6f26.tar.bz2
rsyslog-b6d843ab50b4a84beebfc3474cc8b1b1dabc6f26.zip
bugfix: CEE/json data was lost during disk queue operation
Diffstat (limited to 'runtime/msg.c')
-rw-r--r--runtime/msg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/msg.c b/runtime/msg.c
index 9d5fa883..9d8bc0f6 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -1113,7 +1113,6 @@ MsgDeserialize(msg_t *pMsg, strm_t *pStrm)
prop_t *propRcvFrom = NULL;
prop_t *propRcvFromIP = NULL;
struct json_tokener *tokener;
- struct json_object *json;
var_t *pVar = NULL;
DEFiRet;
@@ -1197,7 +1196,7 @@ MsgDeserialize(msg_t *pMsg, strm_t *pStrm)
}
if(isProp("json")) {
tokener = json_tokener_new();
- json = json_tokener_parse_ex(tokener, (char*)rsCStrGetSzStrNoNULL(pVar->val.pStr),
+ pMsg->json = json_tokener_parse_ex(tokener, (char*)rsCStrGetSzStrNoNULL(pVar->val.pStr),
cstrLen(pVar->val.pStr));
reinitVar(pVar);
CHKiRet(objDeserializeProperty(pVar, pStrm));