mirror of https://github.com/Icinga/icinga2.git
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…
Reference in New Issue