mirror of
https://github.com/fluencelabs/musl
synced 2025-06-27 13:41:57 +00:00
fix memory leak due to double call to getaddrinfo in gethostbyname*
This commit is contained in:
@ -30,7 +30,6 @@ int gethostbyname2_r(const char *name, int af,
|
||||
buflen -= sizeof(char *)-i;
|
||||
}
|
||||
|
||||
getaddrinfo(name, 0, &hint, &ai);
|
||||
switch (getaddrinfo(name, 0, &hint, &ai)) {
|
||||
case EAI_NONAME:
|
||||
*err = HOST_NOT_FOUND;
|
||||
|
Reference in New Issue
Block a user