* Switch from ldap_search_st() to ldap_search_ext_s(). The latter is not deprecated.
authorArt Cancro <ajc@citadel.org>
Wed, 17 Feb 2010 16:53:03 +0000 (16:53 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 17 Feb 2010 16:53:03 +0000 (16:53 +0000)
commitb4bfcafb03ccbceab9b1d8be94106d5be5d6a8b3
tree8ce7e7695a2588994be6e08742b14f96f96dbe7c
parent30595ab6529f073c86f99a7139de2fa15d5c5555
* Switch from ldap_search_st() to ldap_search_ext_s().  The latter is not deprecated.
* Ignore the return value from ldap_search_ext_s() because it appears to be misleading.  Instead, check to see whether the search returned any results (null or not null).  This also fixes a potential memory leak resulting from ldap_search_ext_s() returning an error code but still populating the search results.
citadel/ldap.c