From 19ac72a36859ea267fbf4e2e640a5499c6276e07 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 16 Sep 2008 13:12:50 +0200 Subject: fixing previous patch, time() call was accidently left in in one case, which was not on the focus of the initial testing cases. --- tools/syslogd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/syslogd.c') 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"); -- cgit v1.2.3