1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

transfer.c: move a logging statement placement

This commit is contained in:
Yang Tse 2011-12-25 12:11:51 +01:00
parent 996f2454ba
commit 98292bcdd0

View File

@ -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 */