From 6f216e07aecaf6bf34b8f0892a9666c676ec4ece Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 9 May 2012 12:24:47 +0200 Subject: [PATCH] Fixed return value for Utility::Match. --- base/utility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.50.1