aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-12-25 12:11:51 +0100
committerYang Tse <yangsita@gmail.com>2011-12-25 12:11:51 +0100
commit98292bcdd043612760967f850aa41f55c2652973 (patch)
treed925498fa4836a4603c3bcab9647f2f5d6c131b0
parent996f2454ba0c4368497637e937f8d184d0151c45 (diff)
transfer.c: move a logging statement placement
-rw-r--r--lib/transfer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index e56fffd7b..af48253b1 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -1428,8 +1428,6 @@ static CURLcode loadhostpairs(struct SessionHandle *data)
infof(data, "Resolve %s found illegal!\n", hostp->data);
continue;
}
- infof(data, "Added %s:%d:%s to DNS cache\n",
- hostname, port, address);
if(data->share)
Curl_share_lock(data, CURL_LOCK_DATA_DNS, CURL_LOCK_ACCESS_SINGLE);
@@ -1444,6 +1442,8 @@ static CURLcode loadhostpairs(struct SessionHandle *data)
Curl_freeaddrinfo(addr);
return CURLE_OUT_OF_MEMORY;
}
+ infof(data, "Added %s:%d:%s to DNS cache\n",
+ hostname, port, address);
}
}
data->change.resolve = NULL; /* dealt with now */