[syslog-ng] [PATCH] Fixed compounded filter initialization.

Szalay Attila sasa at balabit.hu
Sun Nov 20 20:26:18 CET 2011


If a filter link to an other filter an init function called to
set up this link. But if this filter is compunded then this
callback is not called so the filter is not initialized but
silently evaluated to false.

For example in the following situation the f_message is always true:

filter f_auth { facility(auth, authpriv); };
filter f_cron { facility(cron); };
filter f_mail { facility(mail); };
filter f_messages { not filter(f_auth) and not filter(f_cron) and not filter(f_mail); };

Signed-off-by: Szalay Attila <sasa at balabit.hu>
---
 lib/filter.c |   39 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fixed-compounded-filter-initialization.patch
Type: text/x-patch
Size: 2230 bytes
Desc: not available
Url : http://lists.balabit.hu/pipermail/syslog-ng/attachments/20111120/c6416b7a/attachment.bin 


More information about the syslog-ng mailing list