From 98292bcdd043612760967f850aa41f55c2652973 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sun, 25 Dec 2011 12:11:51 +0100 Subject: transfer.c: move a logging statement placement --- lib/transfer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 */ -- cgit v1.2.3