]> git.rm.cloudns.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)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 2 Oct 2010 19:21:35 +0000 (21:21 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10509 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=ffc42cb750e2e3b941a79d4acf95e3a3f67f5058

lhnet.c

diff --git a/lhnet.c b/lhnet.c
index 99b9f144f941d9a3c1459c0ac781e1130c901773..bba8a68523e221493bd088cf19dd88c133e6e2fd 100644 (file)
--- a/lhnet.c
+++ b/lhnet.c
@@ -1105,7 +1105,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;