From ff083445bd77930d080f84400c0ff08f06b66dd4 Mon Sep 17 00:00:00 2001
From: Matt Schwager <schwag09@gmail.com>
Date: Mon, 28 Sep 2015 14:38:43 -0400
Subject: [PATCH] Removed new call before makeException.

The `makeException` function returns an instantiated object, so the
caller shouldn't also call `new`.
---
 lib/SimpleSAML/Auth/LDAP.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/SimpleSAML/Auth/LDAP.php b/lib/SimpleSAML/Auth/LDAP.php
index 933b2eac7..b28d06043 100644
--- a/lib/SimpleSAML/Auth/LDAP.php
+++ b/lib/SimpleSAML/Auth/LDAP.php
@@ -80,7 +80,7 @@ class SimpleSAML_Auth_LDAP {
 		 */
 		$this->ldap = @ldap_connect($hostname, $port);
 		if ($this->ldap == FALSE)
-			throw new $this->makeException('Library - LDAP __construct(): Unable to connect to \'' . $hostname . '\'', ERR_INTERNAL);
+			throw $this->makeException('Library - LDAP __construct(): Unable to connect to \'' . $hostname . '\'', ERR_INTERNAL);
 
 		/* Enable LDAP protocol version 3. */
 		if (!@ldap_set_option($this->ldap, LDAP_OPT_PROTOCOL_VERSION, 3))
-- 
GitLab