From 09ac3e9cf2c91ada8f57cccd383301b616d91984 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Tue, 23 Jul 2019 20:40:39 +0200
Subject: [PATCH] Missed a spot

---
 modules/saml/www/sp/discoresp.php | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/modules/saml/www/sp/discoresp.php b/modules/saml/www/sp/discoresp.php
index 1b53506e7..8d1ab65d5 100644
--- a/modules/saml/www/sp/discoresp.php
+++ b/modules/saml/www/sp/discoresp.php
@@ -14,9 +14,6 @@ if (!array_key_exists('idpentityid', $_REQUEST)) {
 
 /** @var array $state */
 $state = \SimpleSAML\Auth\State::loadState($_REQUEST['AuthID'], 'saml:sp:sso');
-if ($state === null) {
-    throw new \SimpleSAML\Error\NoState();
-}
 
 // Find authentication source
 assert(array_key_exists('saml:sp:AuthId', $state));
-- 
GitLab