summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--syslogd.c5
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 65c4049d..d9931505 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
---------------------------------------------------------------------------
Version 2.0.4 STABLE (rgerhards), 2008-03-??
- bugfix: internally generated messages had "FROMHOST" property not set
+- bugfix: continue parsing if tag is oversize (discard oversize part) - thanks
+ to mclaughlin77@gmail.com for the patch
---------------------------------------------------------------------------
Version 2.0.3 STABLE (rgerhards), 2008-03-12
- bugfix: setting for $EscapeCopntrolCharactersOnReceive was not
diff --git a/syslogd.c b/syslogd.c
index a28c2566..a039eeed 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -3159,6 +3159,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, ':');