[syslog-ng] [PATCH 1/2] pdbtool: match with supplied message did not perform processing
balint.kovacs at balabit.com
balint.kovacs at balabit.com
Mon Dec 10 09:58:11 CET 2012
From: Balint Kovacs <blint at blint.hu>
Under some circumstances pdbtool match did not process the message
if it was provided on the command line due to a regression introduced
as part of a LogProto refactoring (2d0fb042)
Signed-off-by: Balint Kovacs <blint at blint.hu>
---
modules/dbparser/pdbtool/pdbtool.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/dbparser/pdbtool/pdbtool.c b/modules/dbparser/pdbtool/pdbtool.c
index deab84d..25014fe 100644
--- a/modules/dbparser/pdbtool/pdbtool.c
+++ b/modules/dbparser/pdbtool/pdbtool.c
@@ -503,7 +503,7 @@ pdbtool_match(int argc, char *argv[])
{
dbg_list = g_array_new(FALSE, FALSE, sizeof(RDebugInfo));
}
- while (!eof && buf)
+ while (!eof && (buf || match_message))
{
invalidate_cached_time();
if (G_LIKELY(proto))
--
1.7.9.5
More information about the syslog-ng
mailing list