mirror of
https://github.com/curl/curl.git
synced 2026-06-04 08:54:17 +03:00
Avoid a NULL pointer dereference in an OOM condition.
This commit is contained in:
parent
8cfb0e26bb
commit
bef2e7f2ff
1 changed files with 1 additions and 1 deletions
|
|
@ -2126,7 +2126,7 @@ CURLcode Curl_disconnect(struct connectdata *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 */
|
||||
conn->handler->disconnect(conn);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue