From fec4535f1c407f39d35ed4f3921662f94710a10e Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 9 Dec 2019 08:46:27 +0100 Subject: [PATCH] core/config bugfix: false error msg when config.enabled="on" is used When the 'config.enabled="on"' config parameter an invalid error message was emitted that this parameter is not supported. However, it was still applied properly. This commit removes the invalid error message. closes https://github.com/rsyslog/rsyslog/issues/4011 --- grammar/rainerscript.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grammar/rainerscript.c b/grammar/rainerscript.c index 1b8581b537..fd55360472 100644 --- a/grammar/rainerscript.c +++ b/grammar/rainerscript.c @@ -1219,6 +1219,8 @@ nvlstGetParams(struct nvlst *lst, struct cnfparamblk *params, for(val = lst; val != NULL ; val = val->next) { val->bUsed = 1; } + } else { + valnode->bUsed = 1; } }