bugfix: loop never executed - this was the reason that droping a slave

could remove the complete ip setup
This commit is contained in:
Karsten Keil 2001-07-18 18:51:34 +00:00
parent 579069d9cd
commit baabf88ef8
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}