Fixed return value for Utility::Match.

This commit is contained in:
Gunnar Beutner 2012-05-09 12:24:47 +02:00
parent 4cbf2400c0
commit 6f216e07ae

View File

@ -141,5 +141,5 @@ shared_ptr<X509> Utility::GetX509Certificate(string pemfile)
bool Utility::Match(string pattern, string text) 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);
} }