[quake3-commits] r1813 - trunk/code/qcommon
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Jan 23 20:55:12 EST 2011
Author: thilo
Date: 2011-01-23 20:55:12 -0500 (Sun, 23 Jan 2011)
New Revision: 1813
Modified:
trunk/code/qcommon/net_ip.c
Log:
Fix name resolution for domains with A and AAAA record
Modified: trunk/code/qcommon/net_ip.c
===================================================================
--- trunk/code/qcommon/net_ip.c 2011-01-24 01:24:07 UTC (rev 1812)
+++ trunk/code/qcommon/net_ip.c 2011-01-24 01:55:12 UTC (rev 1813)
@@ -309,11 +309,11 @@
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;
}
More information about the quake3-commits
mailing list