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
commit0ebcac669e5d4b4773198b37126fb6693612951d (patch)
tree8dc93320da8151b0e16f1b8105c8d9ae0e4b8acb /src
parent96b9fba333c5785643a9e5376708772db7aa93d9 (diff)
downloadopenttd-0ebcac669e5d4b4773198b37126fb6693612951d.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) {