Avoid a NULL pointer dereference in an OOM condition.

This commit is contained in:
Dan Fandrich 2007-10-18 01:04:57 +00:00
parent 8cfb0e26bb
commit bef2e7f2ff
1 changed files with 1 additions and 1 deletions

View File

@ -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);