diff --git a/lib/SimpleSAML/XML/Validator.php b/lib/SimpleSAML/XML/Validator.php
index 545f3dfc4cfc2c6e8db63675ca1c2826fa7bd482..be283c0775adf99e214971e93896283ae5e48f65 100644
--- a/lib/SimpleSAML/XML/Validator.php
+++ b/lib/SimpleSAML/XML/Validator.php
@@ -115,7 +115,7 @@ class SimpleSAML_XML_Validator {
 		}
 
 		// Check the signature
-		if (! $objXMLSecDSig->verify($objKey)) {
+		if ($objXMLSecDSig->verify($objKey) !== 1) {
 			throw new Exception("Unable to validate Signature");
 		}