From 6ddb3249e6bac6c573a5ab45eba65fba91c1d9e9 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 29 May 2009 13:54:53 +0200 Subject: fixed copy&paste error in previous commit (testcase was only present in v4, so I did not spot the issue immediately) --- ChangeLog | 1 + tools/syslogd.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2269dc05..e9075ab0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,7 @@ Version 3.22.1 [v3-stable] (rgerhards), 2009-04-?? are specified. Thanks to Michael Biebl for helping to debug this one. - relaxed GnuTLS version requirement to 1.4.0 after confirmation from the field that this version is sufficient +- bugfix: parser did not properly handle empty structured data --------------------------------------------------------------------------- Version 3.22.0 [v3-stable] (rgerhards), 2009-04-21 This is the first stable release that includes the full functionality diff --git a/tools/syslogd.c b/tools/syslogd.c index f8149613..13eaede2 100644 --- a/tools/syslogd.c +++ b/tools/syslogd.c @@ -1252,7 +1252,7 @@ static int parseRFCStructuredData(char **pp2parse, char *pResult) if(*p2parse != '[') return 1; /* this is NOT structured data! */ - if(*p2parse != '-') { /* empty structured data? */ + if(*p2parse == '-') { /* empty structured data? */ *pResult++ = '-'; ++p2parse; } else { -- cgit