mirror of
https://github.com/paulusmack/ppp.git
synced 2024-12-03 16:33:44 +08:00
don't set phase to terminate if already dead.
This commit is contained in:
parent
0f2f62bd2c
commit
9ae5c748e3
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user