aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-02-21 12:28:45 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-02-21 12:28:45 +0000
commit3bb460222787c68e19b2950e42ac0eb2ccb2b351 (patch)
treed708b0b3fea575295c9ad7bd56e28db1bcd4de8d
parent064eebeaf1c0fa4db0300e54ecd0b839711ffbbe (diff)
assert that the *connp is a non-NULL pointer when Curl_done() is called
-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 */