summaryrefslogtreecommitdiff
path: root/lib/hostip.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-11-11 14:51:39 +0100
committerDaniel Stenberg <daniel@haxx.se>2010-11-11 15:16:21 +0100
commita1f32ffee540bcef046dc499938585c5da9d0aa8 (patch)
treeb4eab16b09769defe5ebc40805d330ff36d9e120 /lib/hostip.c
parentfec5f03e22c815c485d6381b2d5a83579a72996c (diff)
downloadcurl-a1f32ffee540bcef046dc499938585c5da9d0aa8.tar.gz
ip_version: moved to connection struct
The IP version choice was previously only in the UserDefined struct within the SessionHandle, but since we sometimes alter that option during a request we need to have it on a per-connection basis. I also moved more "init conn" code into the allocate_conn() function which is designed for that purpose more or less.
Diffstat (limited to 'lib/hostip.c')
-rw-r--r--lib/hostip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 8e1494e3f..b5bde96e4 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -444,7 +444,7 @@ int Curl_resolv(struct connectdata *conn,
/* Check what IP specifics the app has requested and if we can provide it.
* If not, bail out. */
- if(!Curl_ipvalid(data))
+ if(!Curl_ipvalid(conn))
return CURLRESOLV_ERROR;
/* If Curl_getaddrinfo() returns NULL, 'respwait' might be set to a