mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
assert that the *connp is a non-NULL pointer when Curl_done() is called
This commit is contained in:
parent
064eebeaf1
commit
3bb4602227
@ -4392,8 +4392,13 @@ CURLcode Curl_done(struct connectdata **connp,
|
||||
bool premature)
|
||||
{
|
||||
CURLcode result;
|
||||
struct connectdata *conn = *connp;
|
||||
struct SessionHandle *data = conn->data;
|
||||
struct connectdata *conn;
|
||||
struct SessionHandle *data;
|
||||
|
||||
DEBUGASSERT(*connp);
|
||||
|
||||
conn = *connp;
|
||||
data = conn->data;
|
||||
|
||||
Curl_expire(data, 0); /* stop timer */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user