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 :-/
This commit is contained in:
Brian Somers 1998-06-20 01:55:28 +00:00
parent d2a69fc3ba
commit 74d14b4cc9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37062

View File

@ -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);