Changeset 46997 in vbox for trunk/src/VBox/Main/src-server/solaris
- Timestamp:
- Jul 5, 2013 9:56:14 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 87014
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/solaris/NetIf-solaris.cpp
r46996 r46997 419 419 if (!rc) 420 420 { 421 int cbIfaces = IfNum.lifn_count * sizeof(struct lifreq); 421 int cIfaces = RT_MIN(1024, IfNum.lifn_count); /* sane limit */ 422 int cbIfaces = cIfaces * sizeof(struct lifreq); 422 423 struct lifreq *Ifaces = (struct lifreq *)RTMemTmpAlloc(cbIfaces); 423 424 if (Ifaces) … … 431 432 if (!rc) 432 433 { 433 for (int i = 0; i < IfNum.lifn_count; i++)434 for (int i = 0; i < cIfaces; i++) 434 435 { 435 436 /*
Note:
See TracChangeset
for help on using the changeset viewer.