diff options
-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) { |