From d3d07d9b184599de66c382dfaf3830233228aa72 Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Tue, 7 Sep 2010 05:41:05 +0000
Subject: [PATCH] saml: Fix detection of datastore in SAML2
 AssertionConsumerService.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2527 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/saml/www/sp/saml2-acs.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/saml/www/sp/saml2-acs.php b/modules/saml/www/sp/saml2-acs.php
index 6f1266d8d..5379676e5 100644
--- a/modules/saml/www/sp/saml2-acs.php
+++ b/modules/saml/www/sp/saml2-acs.php
@@ -56,7 +56,7 @@ try {
 
 /* Check for duplicate assertion (replay attack). */
 $store = SimpleSAML_Store::getInstance();
-if ($store !== NULL) {
+if ($store !== FALSE) {
 	$aID = $assertion->getId();
 	if ($store->get('saml.AssertionReceived', $aID) !== NULL) {
 		$e = new SimpleSAML_Error_Exception('Received duplicate assertion.');
-- 
GitLab