From 74d14b4cc9f72e30d82a898ba6e3b96f548ed6a4 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Sat, 20 Jun 1998 01:55:28 +0000 Subject: [PATCH] Do an InitRestartCounter when we get a TerminateReq in Opened state..... I have no idea why this never caused problems in the past - maybe the restart counter was bogusly initialised somewhere else :-/ --- usr.sbin/ppp/fsm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/ppp/fsm.c b/usr.sbin/ppp/fsm.c index 498077be18de..417465099019 100644 --- a/usr.sbin/ppp/fsm.c +++ b/usr.sbin/ppp/fsm.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: fsm.c,v 1.30 1998/06/16 19:40:36 brian Exp $ + * $Id: fsm.c,v 1.31 1998/06/20 00:19:36 brian Exp $ * * TODO: */ @@ -652,6 +652,7 @@ FsmRecvTermReq(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) case ST_OPENED: (*fp->fn->LayerDown)(fp); (*fp->fn->SendTerminateAck)(fp, lhp->id); + FsmInitRestartCounter(fp); timer_Start(&fp->FsmTimer); /* Start restart timer */ fp->restart = 0; NewState(fp, ST_STOPPING);