mirror of
https://github.com/curl/curl.git
synced 2026-08-24 22:13:33 +03:00
OOM condition fix
This commit is contained in:
parent
eb612bfdfc
commit
2ea70a5c73
1 changed files with 3 additions and 1 deletions
|
|
@ -928,8 +928,10 @@ Curl_addrinfo *Curl_he2ai(const struct hostent *he, int port)
|
||||||
prevai = ai;
|
prevai = ai;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(result != CURLE_OK)
|
if(result != CURLE_OK) {
|
||||||
Curl_freeaddrinfo(firstai);
|
Curl_freeaddrinfo(firstai);
|
||||||
|
firstai = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return firstai;
|
return firstai;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue