1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 16:18:48 -05:00

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

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