summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-12-20 18:24:02 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-12-20 18:24:02 +0100
commitaf720e9f9dffa205cf4b323c2a420c1cca6ddc17 (patch)
tree122929be8beb91c36005d9e722d0c2b4c114d9be /plugins
parent832d6e1e2c88455be6bb0929591715499602ad56 (diff)
parent74722b23317d556e86ad7fb77913c4c864c239c4 (diff)
downloadrsyslog-af720e9f9dffa205cf4b323c2a420c1cca6ddc17.tar.gz
rsyslog-af720e9f9dffa205cf4b323c2a420c1cca6ddc17.tar.xz
rsyslog-af720e9f9dffa205cf4b323c2a420c1cca6ddc17.zip
Merge branch 'v5-stable' into v5-stable-newstats
Conflicts: ChangeLog
Diffstat (limited to 'plugins')
-rw-r--r--plugins/imuxsock/imuxsock.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/imuxsock/imuxsock.c b/plugins/imuxsock/imuxsock.c
index 2697c48a..feddb20c 100644
--- a/plugins/imuxsock/imuxsock.c
+++ b/plugins/imuxsock/imuxsock.c
@@ -565,8 +565,11 @@ SubmitMsg(uchar *pRcv, int lenRcv, lstn_t *pLstn, struct ucred *cred)
parse++; lenMsg--; /* '>' */
if((pLstn->flags & IGNDATE)) {
- parse += 16; /* just skip timestamp */
- lenMsg -= 16;
+ /* in this case, we still need to find out if we have a valid
+ * datestamp or not .. and advance the parse pointer accordingly.
+ */
+ struct syslogTime dummy;
+ datetime.ParseTIMESTAMP3164(&dummy, &parse, &lenMsg);
} else {
if(datetime.ParseTIMESTAMP3164(&(pMsg->tTIMESTAMP), &parse, &lenMsg) != RS_RET_OK) {
DBGPRINTF("we have a problem, invalid timestamp in msg!\n");