don't set phase to terminate if already dead.
authorPaul Mackerras <paulus@samba.org>
Tue, 4 Mar 1997 03:39:56 +0000 (03:39 +0000)
committerPaul Mackerras <paulus@samba.org>
Tue, 4 Mar 1997 03:39:56 +0000 (03:39 +0000)
pppd/lcp.c

index 6d896a4ab1f3ab3208a9cd1f08eefe39489bab25..6661b2e4c4634c4b9fe1cc41f3ca99a53b1b84e5 100644 (file)
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: lcp.c,v 1.28 1996/10/08 04:35:02 paulus Exp $";
+static char rcsid[] = "$Id: lcp.c,v 1.29 1997/03/04 03:39:56 paulus Exp $";
 #endif
 
 /*
@@ -232,7 +232,8 @@ lcp_close(unit, reason)
 {
     fsm *f = &lcp_fsm[unit];
 
-    phase = PHASE_TERMINATE;
+    if (phase != PHASE_DEAD)
+       phase = PHASE_TERMINATE;
     if (f->state == STOPPED && f->flags & (OPT_PASSIVE|OPT_SILENT)) {
        /*
         * This action is not strictly according to the FSM in RFC1548,