diff options
author | rubidium <rubidium@openttd.org> | 2008-08-04 19:07:37 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-08-04 19:07:37 +0000 |
commit | 12037a8b387f391e644fc64612ee4ad21e0af727 (patch) | |
tree | 8dc93320da8151b0e16f1b8105c8d9ae0e4b8acb /src | |
parent | d8bfe46027b9823aff1e603b480c69f33f4fc9b1 (diff) | |
download | openttd-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.cpp | 2 |
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) { |