bugfix: loop never executed - this was the reason that droping a slave
could remove the complete ip setup
This commit is contained in:
parent
579069d9cd
commit
baabf88ef8
|
@ -221,7 +221,7 @@ void link_down(int unit)
|
|||
else {
|
||||
struct link_struct *q;
|
||||
int i; /* bugcheck, stop after 1024 links */
|
||||
for(i=1024,q=lns[unit].bundle_next;!i && q!=&lns[unit];q=q->bundle_next,i--) {
|
||||
for(i=1024,q=lns[unit].bundle_next;i && q!=&lns[unit];q=q->bundle_next,i--) {
|
||||
if(q->bundle_next == &lns[unit])
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue