Fixed the LDAP_DEPRECATED #define as suggested by Daniel Johnson, and
indented some of the code to curl-style
This commit is contained in:
@@ -46,7 +46,7 @@
|
|||||||
#ifdef CURL_LDAP_WIN /* Use W$ LDAP implementation. */
|
#ifdef CURL_LDAP_WIN /* Use W$ LDAP implementation. */
|
||||||
# include <winldap.h>
|
# include <winldap.h>
|
||||||
#else
|
#else
|
||||||
#define LDAP_DEPRECATED /* Be sure ldap_init() is defined. */
|
#define LDAP_DEPRECATED 1 /* Be sure ldap_init() is defined. */
|
||||||
# include <ldap.h>
|
# include <ldap.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -459,7 +459,7 @@ static int _ldap_url_parse2 (const struct connectdata *conn, LDAPURLDesc *ludp)
|
|||||||
for (i = 0; ludp->lud_exts[i]; i++)
|
for (i = 0; ludp->lud_exts[i]; i++)
|
||||||
LDAP_TRACE (("exts[%d] '%s'\n", i, ludp->lud_exts[i]));
|
LDAP_TRACE (("exts[%d] '%s'\n", i, ludp->lud_exts[i]));
|
||||||
|
|
||||||
success:
|
success:
|
||||||
if (!unescape_elements(conn->data, ludp))
|
if (!unescape_elements(conn->data, ludp))
|
||||||
return LDAP_NO_MEMORY;
|
return LDAP_NO_MEMORY;
|
||||||
return LDAP_SUCCESS;
|
return LDAP_SUCCESS;
|
||||||
|
Reference in New Issue
Block a user