(svn r13997) -Fix (r13988): in some cases no broadcast addresses would be found.

This commit is contained in:
rubidium 2008-08-04 19:07:37 +00:00
parent 96b9fba333
commit 0ebcac669e
1 changed files with 1 additions and 1 deletions

View File

@ -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) {