syslogd: Fix RFC5424 structured-data parser

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2019-11-07 23:18:29 +01:00
parent 22c3fa9fa3
commit cc96379252

View File

@ -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;