mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
parent
b532d35b5c
commit
2cd2686129
@ -368,11 +368,13 @@ static CURLcode ldap_disconnect(struct Curl_easy *data,
|
||||
|
||||
if(li) {
|
||||
if(li->ld) {
|
||||
#ifdef USE_SSL
|
||||
if(conn->ssl[FIRSTSOCKET].use) {
|
||||
Sockbuf *sb;
|
||||
ldap_get_option(li->ld, LDAP_OPT_SOCKBUF, &sb);
|
||||
ber_sockbuf_add_io(sb, &ldapsb_tls, LBER_SBIOD_LEVEL_TRANSPORT, data);
|
||||
}
|
||||
#endif
|
||||
ldap_unbind_ext(li->ld, NULL, NULL);
|
||||
li->ld = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user