mirror of
https://github.com/curl/curl.git
synced 2026-05-30 17:17:33 +03:00
disconnect: set conn->data for protocol disconnect
Follow-up to fb445a1e18: Set conn->data explicitly to point out the
current transfer when invoking the protocol-specific disconnect function
so that it can work correctly.
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12173
This commit is contained in:
parent
e9ababd4f5
commit
f3ce38739f
1 changed files with 3 additions and 0 deletions
|
|
@ -781,6 +781,9 @@ CURLcode Curl_disconnect(struct Curl_easy *data,
|
||||||
Curl_http_ntlm_cleanup(conn);
|
Curl_http_ntlm_cleanup(conn);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* the protocol specific disconnect handler needs a transfer for its
|
||||||
|
connection! */
|
||||||
|
conn->data = data;
|
||||||
if(conn->handler->disconnect)
|
if(conn->handler->disconnect)
|
||||||
/* This is set if protocol-specific cleanups should be made */
|
/* This is set if protocol-specific cleanups should be made */
|
||||||
conn->handler->disconnect(conn, dead_connection);
|
conn->handler->disconnect(conn, dead_connection);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue