summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-10-09 07:48:22 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-10-09 07:48:22 +0200
commit5742f9cdd0da18a3ddfb0a51a981637124a6ab25 (patch)
tree008f8267a1d35ce3b768943228aa7e72bd0d85a4 /runtime
parentace4f2f75202aec39449dac11b9eb1deca7428d7 (diff)
downloadrsyslog-5742f9cdd0da18a3ddfb0a51a981637124a6ab25.tar.gz
rsyslog-5742f9cdd0da18a3ddfb0a51a981637124a6ab25.tar.xz
rsyslog-5742f9cdd0da18a3ddfb0a51a981637124a6ab25.zip
fixing segfault caused by all inputs but imudp
Diffstat (limited to 'runtime')
-rw-r--r--runtime/msg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/msg.c b/runtime/msg.c
index c030fa45..e52c9e3f 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -264,6 +264,7 @@ static inline rsRetVal msgBaseConstruct(msg_t **ppThis)
/* initialize members that are non-zero */
pM->iRefCount = 1;
+ pM->bIsParsed = 1; /* first we assume this is parsed. If not, input must re-set to 0 */
pM->iSeverity = -1;
pM->iFacility = -1;
objConstructSetObjInfo(pM);