summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKiss Gabor (Bitman) <kissg@ssg.ki.iif.hu>2010-08-05 08:25:57 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2010-08-05 08:25:57 +0200
commitf2ec2e9b206b2f8a30417f303017ae0567cbbc0e (patch)
tree6d13232a0cbf2c7fae2b5ac445677ed618b6a2ee
parent01e6df368cdec89920d075fe096971481cb8ce49 (diff)
downloadrsyslog-f2ec2e9b206b2f8a30417f303017ae0567cbbc0e.tar.gz
rsyslog-f2ec2e9b206b2f8a30417f303017ae0567cbbc0e.tar.xz
rsyslog-f2ec2e9b206b2f8a30417f303017ae0567cbbc0e.zip
program name filter ! in the configuration cannot be reset
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
-rw-r--r--ChangeLog2
-rw-r--r--runtime/conf.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index fb3b01f2..5864d934 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,6 +16,8 @@ Version 3.22.2 [v3-stable] (rgerhards), 2009-07-??
was random (but most often "on")
- bugfix: potential segfault when -p command line option was used
thanks to varmojfekoj for pointing me at this bug
+- bugfix: programname filter in ! configuration can not be reset
+ Thanks to Kiss Gabor for the patch.
---------------------------------------------------------------------------
Version 3.22.1 [v3-stable] (rgerhards), 2009-07-02
- bugfix: invalid error message issued if $inlcudeConfig was on an empty
diff --git a/runtime/conf.c b/runtime/conf.c
index ad2f4c15..001b501d 100644
--- a/runtime/conf.c
+++ b/runtime/conf.c
@@ -985,8 +985,7 @@ static rsRetVal cflineProcessTagSelector(uchar **pline)
if(**pline != '\0' && **pline == '*' && *(*pline+1) == '\0') {
dbgprintf("resetting programname filter\n");
if(pDfltProgNameCmp != NULL) {
- if((iRet = rsCStrSetSzStr(pDfltProgNameCmp, NULL)) != RS_RET_OK)
- return(iRet);
+ rsCStrDestruct(&pDfltProgNameCmp);
}
} else {
dbgprintf("setting programname filter to '%s'\n", *pline);