mirror of
https://github.com/curl/curl.git
synced 2026-08-26 22:44:44 +03:00
move Curl_share_lock and ref counting into Curl_fetch_addr
This commit is contained in:
parent
0db831976e
commit
b4be97fb67
3 changed files with 55 additions and 27 deletions
|
|
@ -174,6 +174,9 @@ const char *Curl_printable_address(const Curl_addrinfo *ip,
|
|||
* Curl_fetch_addr() fetches a 'Curl_dns_entry' already in the DNS cache.
|
||||
*
|
||||
* Returns the Curl_dns_entry entry pointer or NULL if not in the cache.
|
||||
*
|
||||
* The returned data *MUST* be "unlocked" with Curl_resolv_unlock() after
|
||||
* use, or we'll leak memory!
|
||||
*/
|
||||
struct Curl_dns_entry *
|
||||
Curl_fetch_addr(struct connectdata *conn,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue