summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-03-24 14:57:19 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-03-24 14:58:16 +0100
commitb8253474330d58d3b343cb781d4706814d29581b (patch)
treeb786187f65d96f3bc3ac6632de7e2c47572d752d
parent1803be5746aeff88cdd5a9f4a205917d9b15b964 (diff)
downloadcurl-bagder/ldap-disconnect-transfer.tar.gz
openldap: disconnect betterbagder/ldap-disconnect-transfer
Instead of clearing the callback argument in disconnect, set it to the (new) transfer to make sure the correct data is passed to the callbacks. Follow-up to e467ea3bd937f38 Assisted-by: Patrick Monnerat
-rw-r--r--lib/openldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/openldap.c b/lib/openldap.c
index 066c0fd73..c80ac8b07 100644
--- a/lib/openldap.c
+++ b/lib/openldap.c
@@ -371,7 +371,7 @@ static CURLcode ldap_disconnect(struct Curl_easy *data,
if(li->ld) {
Sockbuf *sb;
ldap_get_option(li->ld, LDAP_OPT_SOCKBUF, &sb);
- ber_sockbuf_add_io(sb, &ldapsb_tls, LBER_SBIOD_LEVEL_TRANSPORT, NULL);
+ ber_sockbuf_add_io(sb, &ldapsb_tls, LBER_SBIOD_LEVEL_TRANSPORT, data);
ldap_unbind_ext(li->ld, NULL, NULL);
li->ld = NULL;
}