From 0ebcac669e5d4b4773198b37126fb6693612951d Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 4 Aug 2008 19:07:37 +0000 Subject: (svn r13997) -Fix (r13988): in some cases no broadcast addresses would be found. --- src/network/core/host.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/network/core') diff --git a/src/network/core/host.cpp b/src/network/core/host.cpp index dc620225c..cbe3786d2 100644 --- a/src/network/core/host.cpp +++ b/src/network/core/host.cpp @@ -156,7 +156,7 @@ static int NetworkFindBroadcastIPsInternal(uint32 *broadcast, int limit) // !GET const char *buf_end = buf + ifconf.ifc_len; int index = 0; - for (const char *p = buf; p < buf_end && index != 0;) { + for (const char *p = buf; p < buf_end && index != limit;) { const struct ifreq* req = (const struct ifreq*)p; if (req->ifr_addr.sa_family == AF_INET) { -- cgit v1.2.3-70-g09d2