X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Ffsm.c;h=5d2eca6880ad53af0544d978960b2cf88014cfd5;hp=4e504f20808785a693f649ccc5afa362acc00363;hb=414162e68f1129323a79d68fc79b0ae5ec2bc332;hpb=035aefdd1f25f6bdeb73b42a11fd8da76118a405 diff --git a/pppd/fsm.c b/pppd/fsm.c index 4e504f2..5d2eca6 100644 --- a/pppd/fsm.c +++ b/pppd/fsm.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: fsm.c,v 1.7 1994/10/24 04:31:11 paulus Exp $"; +static char rcsid[] = "$Id: fsm.c,v 1.8 1994/11/10 01:52:05 paulus Exp $"; #endif /* @@ -470,6 +470,7 @@ fsm_rconfack(f, id, inp, len) case ACKRCVD: /* Huh? an extra valid Ack? oh well... */ + UNTIMEOUT(fsm_timeout, (caddr_t) f); /* Cancel timeout */ fsm_sconfreq(f, 0); f->state = REQSENT; break; @@ -534,6 +535,7 @@ fsm_rconfnakrej(f, code, id, inp, len) case ACKRCVD: /* Got a Nak/reject when we had already had an Ack?? oh well... */ + UNTIMEOUT(fsm_timeout, (caddr_t) f); /* Cancel timeout */ fsm_sconfreq(f, 0); f->state = REQSENT; break; @@ -591,11 +593,13 @@ fsm_rtermack(f) switch (f->state) { case CLOSING: + UNTIMEOUT(fsm_timeout, (caddr_t) f); f->state = CLOSED; if( f->callbacks->finished ) (*f->callbacks->finished)(f); break; case STOPPING: + UNTIMEOUT(fsm_timeout, (caddr_t) f); f->state = STOPPED; if( f->callbacks->finished ) (*f->callbacks->finished)(f);