diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-09-16 13:12:50 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-09-16 13:12:50 +0200 |
commit | 19ac72a36859ea267fbf4e2e640a5499c6276e07 (patch) | |
tree | 00c77116082e33991ea691746c872aff13960380 /tools | |
parent | 760e5f0d3986aa93a07e207dde3206741ec3ad74 (diff) | |
download | rsyslog-19ac72a36859ea267fbf4e2e640a5499c6276e07.tar.gz rsyslog-19ac72a36859ea267fbf4e2e640a5499c6276e07.tar.bz2 rsyslog-19ac72a36859ea267fbf4e2e640a5499c6276e07.zip |
fixing previous patch, time() call was accidently left in
in one case, which was not on the focus of the initial testing
cases.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/syslogd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/syslogd.c b/tools/syslogd.c index f9c3965d..f51947bf 100644 --- a/tools/syslogd.c +++ b/tools/syslogd.c @@ -1331,11 +1331,11 @@ static int parseRFCSyslogMsg(msg_t *pMsg, int flags) */ /* TIMESTAMP */ - datetime.getCurrTime(&(pMsg->tTIMESTAMP)); /* initialize timestamp */ + memcpy(&pMsg->tTIMESTAMP, &pMsg->tRcvdAt, sizeof(struct syslogTime)); if(datetime.ParseTIMESTAMP3339(&(pMsg->tTIMESTAMP), &p2parse) == RS_RET_OK) { if(flags & IGNDATE) { /* we need to ignore the msg data, so simply copy over reception date */ - datetime.getCurrTime(&(pMsg->tTIMESTAMP)); /* use the current time! */ + memcpy(&pMsg->tTIMESTAMP, &pMsg->tRcvdAt, sizeof(struct syslogTime)); } } else { dbgprintf("no TIMESTAMP detected!\n"); |