]> granicus.if.org Git - icinga2/commitdiff
Fixed return value for Utility::Match.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 9 May 2012 10:24:47 +0000 (12:24 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 9 May 2012 10:24:47 +0000 (12:24 +0200)
base/utility.cpp

index a2a8111f7634e78702a47200f75a1aca5c943312..3c0149b2551d1a2cc7d0489072809a8ca4c4fea5 100644 (file)
@@ -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);
 }