From cc96379252b44ab938069ba99c1b5939ab7df5cd Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 7 Nov 2019 23:18:29 +0100 Subject: [PATCH] syslogd: Fix RFC5424 structured-data parser Signed-off-by: Joachim Nilsson --- src/syslogd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/syslogd.c b/src/syslogd.c index 7962392..5f56fc6 100644 --- a/src/syslogd.c +++ b/src/syslogd.c @@ -922,6 +922,7 @@ parsemsg_rfc5424(const char *from, int pri, char *msg) FAIL_IF("STRUCTURED-NAME", start == msg); \ } while (0) IF_NOT_NILVALUE(buffer.sd) { + buffer.sd = msg; /* SD-ELEMENT. */ while (*msg == '[') { ++msg;