assert that the *connp is a non-NULL pointer when Curl_done() is called

This commit is contained in:
Daniel Stenberg 2008-02-21 12:28:45 +00:00
parent 064eebeaf1
commit 3bb4602227
1 changed files with 7 additions and 2 deletions

View File

@ -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 */