aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/url.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/url.c b/lib/url.c
index 3c3605c1a..541c11e79 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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 */