From: Gunnar Beutner Date: Wed, 9 May 2012 10:24:47 +0000 (+0200) Subject: Fixed return value for Utility::Match. X-Git-Tag: v0.0.1~542 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f216e07aecaf6bf34b8f0892a9666c676ec4ece;p=icinga2 Fixed return value for Utility::Match. --- diff --git a/base/utility.cpp b/base/utility.cpp index a2a8111f7..3c0149b25 100644 --- a/base/utility.cpp +++ b/base/utility.cpp @@ -141,5 +141,5 @@ shared_ptr 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); }