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); }