summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2011-03-29 18:38:20 +0200
committerMichael Biebl <biebl@debian.org>2011-03-29 18:38:20 +0200
commitbf9714f547781f6d18f260db7bafec62391dfd6b (patch)
tree8674c17aaacd8a235b6ca6e0cfb83f4c466db8b3 /tools
parentdea543841bb1f1c46586a68da21d55b44c6bf158 (diff)
downloadrsyslog-bf9714f547781f6d18f260db7bafec62391dfd6b.tar.gz
Imported Upstream version 5.7.10upstream/5.7.10
Diffstat (limited to 'tools')
-rw-r--r--tools/pmrfc5424.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/pmrfc5424.c b/tools/pmrfc5424.c
index 2bd1804..b06f134 100644
--- a/tools/pmrfc5424.c
+++ b/tools/pmrfc5424.c
@@ -142,7 +142,7 @@ static int parseRFCStructuredData(uchar **pp2parse, uchar *pResult, int *pLenStr
* structured data. There may also be \] inside the structured data, which
* do NOT terminate an element.
*/
- if(lenStr == 0 || *p2parse != '[')
+ if(lenStr == 0 || (*p2parse != '[' && *p2parse != '-'))
return 1; /* this is NOT structured data! */
if(*p2parse == '-') { /* empty structured data? */
@@ -211,7 +211,6 @@ static int parseRFCStructuredData(uchar **pp2parse, uchar *pResult, int *pLenStr
*
* rger, 2005-11-24
*/
-//static int parseRFCSyslogMsg(msg_t *pMsg, int flags)
BEGINparse
uchar *p2parse;
uchar *pBuf = NULL;