mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-13 16:54:27 +02:00
Fixed return value for Utility::Match.
This commit is contained in:
parent
4cbf2400c0
commit
6f216e07ae
@ -141,5 +141,5 @@ shared_ptr<X509> Utility::GetX509Certificate(string pemfile)
|
||||
|
||||
bool Utility::Match(string pattern, string text)
|
||||
{
|
||||
return (match(pattern.c_str(), text.c_str()) != 0);
|
||||
return (match(pattern.c_str(), text.c_str()) == 0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user