syslogd: Reset prevcount in fprintlog_first() to prevent assert()

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2019-11-28 09:59:35 +01:00
parent 3d4b8cb84d
commit 1d8fe4944d

View File

@ -1687,6 +1687,7 @@ static void fprintlog_first(struct filed *f, struct buf_msg *buffer)
int iovcnt;
logit("Called fprintlog_first(), ");
f->f_prevcount = 0;
if (!memcmp(&buffer->timestamp, &zero, sizeof(zero))) {
struct logtime timestamp_now;