summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-25 08:49:30 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-25 08:49:30 +0000
commit9992ef98cd97fc3ff95078d74f376fab4fe652e0 (patch)
tree9d6ff4afba2858505d23b3fcdffcc84afe102f5c
parent8b2030be91c7bef5215d3da71b91084fefe2eddd (diff)
downloadrsyslog-9992ef98cd97fc3ff95078d74f376fab4fe652e0.tar.gz
rsyslog-9992ef98cd97fc3ff95078d74f376fab4fe652e0.tar.xz
rsyslog-9992ef98cd97fc3ff95078d74f376fab4fe652e0.zip
bugfix: continue parsing if tag is oversize (discard oversize part) -
thanks to mclaughlin77@gmail.com for the patch
-rw-r--r--syslogd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/syslogd.c b/syslogd.c
index 39c0c72d..9b6b4036 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -1493,6 +1493,11 @@ static int parseLegacySyslogMsg(msg_t *pMsg, int flags)
rsCStrAppendChar(pStrB, *p2parse++);
++iCnt;
}
+ if (iCnt == 32) {
+ while(*p2parse && *p2parse != ':' && *p2parse != ' ') {
+ *p2parse++;
+ }
+ }
if(*p2parse == ':') {
++p2parse;
rsCStrAppendChar(pStrB, ':');