From 2e31d21bdddb64f80ce5e3c313ed28de5a8de31f Mon Sep 17 00:00:00 2001 From: oana Date: Tue, 17 Aug 2021 14:47:46 +0000 Subject: [PATCH] Bug fix for issue introduced in revision 6510: if filter is not present, match all messages instead of matching none. git-svn-id: http://voip.null.ro/svn/yate@6516 acf43c95-373e-0410-b603-e72c3f656dc1 --- modules/msgsniff.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/msgsniff.cpp b/modules/msgsniff.cpp index 669bef4d..18429093 100644 --- a/modules/msgsniff.cpp +++ b/modules/msgsniff.cpp @@ -160,7 +160,7 @@ public: } inline bool filterMatches(const Message& msg) { RefPointer flt; - return getFilter(flt) && flt->matches(msg); + return !getFilter(flt) || flt->matches(msg); } private: