diff --git a/src/network/core/host.cpp b/src/network/core/host.cpp --- a/src/network/core/host.cpp +++ b/src/network/core/host.cpp @@ -156,7 +156,7 @@ static int NetworkFindBroadcastIPsIntern 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) {