(svn r13997) -Fix (r13988): in some cases no broadcast addresses would be found.
authorrubidium
Mon, 04 Aug 2008 19:07:37 +0000
changeset 9853 1fa928bd5771
parent 9852 a4ff032669c6
child 9854 81969a55f384
(svn r13997) -Fix (r13988): in some cases no broadcast addresses would be found.
src/network/core/host.cpp
--- a/src/network/core/host.cpp	Mon Aug 04 18:54:19 2008 +0000
+++ b/src/network/core/host.cpp	Mon Aug 04 19:07:37 2008 +0000
@@ -156,7 +156,7 @@
 
 	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) {