From dd90b225059afa962a2ef29b87d6edeb419706b1 Mon Sep 17 00:00:00 2001
From: Jeroen van Meeuwen <kanarip@kanarip.ch>
Date: Mon, 23 Sep 2019 13:56:00 +0200
Subject: [PATCH] Catch used of undefined variable $control

---
 lib/Net/LDAP3.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/Net/LDAP3.php b/lib/Net/LDAP3.php
index 0fe78e8..ca3081d 100644
--- a/lib/Net/LDAP3.php
+++ b/lib/Net/LDAP3.php
@@ -1608,6 +1608,8 @@ class Net_LDAP3
      */
     public function search($base_dn, $filter = '(objectclass=*)', $scope = 'sub', $attrs = array('dn'), $props = array(), $count_only = false)
     {
+        $controls = null;
+
         if (!$this->conn) {
             $this->_debug("No active connection for " . __CLASS__ . "::" . __FUNCTION__);
             return false;
-- 
GitLab