mirror of
https://github.com/curl/curl.git
synced 2026-04-15 02:01:40 +03:00
parent
b532d35b5c
commit
2cd2686129
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue