mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:11:45 +03:00
asyn-ares: handle Curl_dnscache_mk_entry() OOM error
To avoid leaking memory.
Follow-up to ce06fe7771
Closes #19688
This commit is contained in:
parent
d0ad652552
commit
b8f83738c3
1 changed files with 2 additions and 1 deletions
|
|
@ -343,7 +343,8 @@ CURLcode Curl_async_is_resolved(struct Curl_easy *data,
|
|||
Curl_dnscache_mk_entry(data, ares->temp_ai,
|
||||
data->state.async.hostname, 0,
|
||||
data->state.async.port, FALSE);
|
||||
ares->temp_ai = NULL; /* temp_ai now owned by entry */
|
||||
if(data->state.async.dns)
|
||||
ares->temp_ai = NULL; /* temp_ai now owned by entry */
|
||||
#ifdef HTTPSRR_WORKS
|
||||
if(data->state.async.dns) {
|
||||
struct Curl_https_rrinfo *lhrr = Curl_httpsrr_dup_move(&ares->hinfo);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue