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
This commit is contained in:
oana 2021-08-17 14:47:46 +00:00
parent 1972768171
commit 2e31d21bdd
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ public:
}
inline bool filterMatches(const Message& msg) {
RefPointer<SniffMatch> flt;
return getFilter(flt) && flt->matches(msg);
return !getFilter(flt) || flt->matches(msg);
}
private: