diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-25 08:52:11 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-25 08:52:11 +0000 |
commit | 6b2f3da3b511c842465ea4d0826ea915cc1a11fe (patch) | |
tree | 557e0650d9d451fb398b142732972ca56131f6fc | |
parent | 9971f8ffd2241c9fb398a5b78bc8ed6240089cc0 (diff) | |
download | rsyslog-6b2f3da3b511c842465ea4d0826ea915cc1a11fe.tar.gz rsyslog-6b2f3da3b511c842465ea4d0826ea915cc1a11fe.tar.bz2 rsyslog-6b2f3da3b511c842465ea4d0826ea915cc1a11fe.zip |
bugfix: continue parsing if tag is oversize (discard oversize part) -
thanks to mclaughlin77@gmail.com for the patch
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | syslogd.c | 5 |
2 files changed, 7 insertions, 0 deletions
@@ -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 @@ -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, ':'); |