diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-02-21 12:28:45 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-02-21 12:28:45 +0000 |
commit | 3bb460222787c68e19b2950e42ac0eb2ccb2b351 (patch) | |
tree | d708b0b3fea575295c9ad7bd56e28db1bcd4de8d | |
parent | 064eebeaf1c0fa4db0300e54ecd0b839711ffbbe (diff) |
assert that the *connp is a non-NULL pointer when Curl_done() is called
-rw-r--r-- | lib/url.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 */ |