From: Paul Mackerras Date: Tue, 4 Mar 1997 03:39:56 +0000 (+0000) Subject: don't set phase to terminate if already dead. X-Git-Tag: RELEASE_2_3_6~247 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=9ae5c748e3ddc1a9df1b7205bac6cabb9d204702 don't set phase to terminate if already dead. --- diff --git a/pppd/lcp.c b/pppd/lcp.c index 6d896a4..6661b2e 100644 --- a/pppd/lcp.c +++ b/pppd/lcp.c @@ -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,