syslogd: Fix RFC5424 structured-data parser
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
22c3fa9fa3
commit
cc96379252
@ -922,6 +922,7 @@ parsemsg_rfc5424(const char *from, int pri, char *msg)
|
|||||||
FAIL_IF("STRUCTURED-NAME", start == msg); \
|
FAIL_IF("STRUCTURED-NAME", start == msg); \
|
||||||
} while (0)
|
} while (0)
|
||||||
IF_NOT_NILVALUE(buffer.sd) {
|
IF_NOT_NILVALUE(buffer.sd) {
|
||||||
|
buffer.sd = msg;
|
||||||
/* SD-ELEMENT. */
|
/* SD-ELEMENT. */
|
||||||
while (*msg == '[') {
|
while (*msg == '[') {
|
||||||
++msg;
|
++msg;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user