summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-08-04 19:07:37 +0000
committerrubidium <rubidium@openttd.org>2008-08-04 19:07:37 +0000
commit12037a8b387f391e644fc64612ee4ad21e0af727 (patch)
tree8dc93320da8151b0e16f1b8105c8d9ae0e4b8acb /src
parentd8bfe46027b9823aff1e603b480c69f33f4fc9b1 (diff)
downloadopenttd-12037a8b387f391e644fc64612ee4ad21e0af727.tar.xz
(svn r13997) -Fix (r13988): in some cases no broadcast addresses would be found.
Diffstat (limited to 'src')
-rw-r--r--src/network/core/host.cpp2
1 files changed, 1 insertions, 1 deletions
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) {