mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
Avoid a NULL pointer dereference in an OOM condition.
This commit is contained in:
parent
8cfb0e26bb
commit
bef2e7f2ff
@ -2126,7 +2126,7 @@ CURLcode Curl_disconnect(struct connectdata *conn)
|
|||||||
Curl_ntlm_cleanup(conn);
|
Curl_ntlm_cleanup(conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(conn->handler->disconnect)
|
if(conn->handler && 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);
|
conn->handler->disconnect(conn);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user