mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 05:31:29 +00:00
Fix name resolution for domains with A and AAAA record
This commit is contained in:
parent
8243a77c0e
commit
6179036ac9
1 changed files with 4 additions and 4 deletions
|
@ -309,11 +309,11 @@ static qboolean Sys_StringToSockaddr(const char *s, struct sockaddr *sadr, int s
|
|||
|
||||
if(search)
|
||||
{
|
||||
if(res->ai_addrlen > sadr_len)
|
||||
res->ai_addrlen = sadr_len;
|
||||
if(search->ai_addrlen > sadr_len)
|
||||
search->ai_addrlen = sadr_len;
|
||||
|
||||
memcpy(sadr, res->ai_addr, res->ai_addrlen);
|
||||
freeaddrinfo(res);
|
||||
memcpy(sadr, search->ai_addr, search->ai_addrlen);
|
||||
freeaddrinfo(search);
|
||||
|
||||
return qtrue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue