]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a stupid and trivial IPv6 bug that causes a v6 supporting engine to HANG
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 2 Oct 2010 19:20:48 +0000 (19:20 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 2 Oct 2010 19:20:48 +0000 (19:20 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10509 d7cf8633-e32d-0410-b094-e92efae38249

lhnet.c

diff --git a/lhnet.c b/lhnet.c
index 0d32a0c55b23024569faf0da1cef7dea9a25e5aa..75cd5c64df261d1db8f374859256cab775c06154 100644 (file)
--- a/lhnet.c
+++ b/lhnet.c
@@ -1112,7 +1112,7 @@ int LHNET_Read(lhnetsocket_t *lhnetsocket, void *content, int maxcontentlength,
                SOCKLEN_T inetaddresslength;
                address->addresstype = LHNETADDRESSTYPE_NONE;
                inetaddresslength = sizeof(address->addr.in6);
-               value = recvfrom(lhnetsocket->inetsocket, (char *)content, maxcontentlength, 0, &address->addr.sock, &inetaddresslength);
+               value = recvfrom(lhnetsocket->inetsocket, (char *)content, maxcontentlength, LHNET_RECVFROM_FLAGS, &address->addr.sock, &inetaddresslength);
                if (value > 0)
                {
                        address->addresstype = LHNETADDRESSTYPE_INET6;