mirror of
https://github.com/curl/curl.git
synced 2026-08-26 22:04:36 +03:00
the 80 column police narrowed this source code! B-]
This commit is contained in:
parent
471f1d694f
commit
db6d4bcf47
1 changed files with 4 additions and 2 deletions
|
|
@ -224,12 +224,14 @@ Curl_addrinfo *Curl_resolv(struct SessionHandle *data,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* See if its already in our dns cache */
|
/* See if its already in our dns cache */
|
||||||
if (entry_id && curl_hash_find(data->hostcache, entry_id, entry_len+1, (void **) &p)) {
|
if (entry_id &&
|
||||||
|
curl_hash_find(data->hostcache, entry_id, entry_len+1, (void **) &p)) {
|
||||||
_hostcache_return(p->addr);
|
_hostcache_return(p->addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create a new cache entry */
|
/* Create a new cache entry */
|
||||||
p = (struct curl_dns_cache_entry *) malloc(sizeof(struct curl_dns_cache_entry));
|
p = (struct curl_dns_cache_entry *)
|
||||||
|
malloc(sizeof(struct curl_dns_cache_entry));
|
||||||
if (!p) {
|
if (!p) {
|
||||||
_hostcache_return(NULL);
|
_hostcache_return(NULL);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue