From baabf88ef88e94bae46549ca1209222afa4849a0 Mon Sep 17 00:00:00 2001 From: Karsten Keil Date: Wed, 18 Jul 2001 18:51:34 +0000 Subject: [PATCH] bugfix: loop never executed - this was the reason that droping a slave could remove the complete ip setup --- ipppd/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipppd/auth.c b/ipppd/auth.c index 9ed485eb..a5eaa2b8 100644 --- a/ipppd/auth.c +++ b/ipppd/auth.c @@ -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; }