aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-09-11 11:25:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-09-11 11:25:47 +0000
commit5c184cfc0d71a928b28ace2778bbe5064917f4da (patch)
tree3abfc551a5f6eb1ca6e76ae04dbce7617477097b /lib
parent055022a55fedb0a1a5c299d4ba59ed5620025928 (diff)
stupid mistake rectified by Jeff Pohlmeyer
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 3f479ed22..e9c4e5f9f 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1688,9 +1688,10 @@ static void conn_free(struct connectdata *conn)
CURLcode Curl_disconnect(struct connectdata *conn)
{
- struct SessionHandle *data = conn->data;
+ struct SessionHandle *data;
if(!conn)
return CURLE_OK; /* this is closed and fine already */
+ data = conn->data;
#if defined(CURLDEBUG) && defined(AGGRESIVE_TEST)
/* scan for DNS cache entries still marked as in use */