From 0ebcac669e5d4b4773198b37126fb6693612951d Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 4 Aug 2008 19:07:37 +0000 Subject: [PATCH] (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(-) diff --git a/src/network/core/host.cpp b/src/network/core/host.cpp index dc620225c2..cbe3786d26 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) {