From: divverent Date: Sat, 2 Oct 2010 19:20:48 +0000 (+0000) Subject: fix a stupid and trivial IPv6 bug that causes a v6 supporting engine to HANG X-Git-Tag: xonotic-v0.1.0preview~144 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4d9eb3f107defa05c3134d1270ccf1604d9c9726;p=xonotic%2Fdarkplaces.git fix a stupid and trivial IPv6 bug that causes a v6 supporting engine to HANG git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10509 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=ffc42cb750e2e3b941a79d4acf95e3a3f67f5058 --- diff --git a/lhnet.c b/lhnet.c index 99b9f144..bba8a685 100644 --- 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;