summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/ccp.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1998-04-19 02:23:21 +0000
committerBrian Somers <brian@FreeBSD.org>1998-04-19 02:23:21 +0000
commit8d9b9867cc16764a1c3c058380310c1928924a69 (patch)
treefcce925c8f7c11fb535b50d9c04f363861e41fe2 /usr.sbin/ppp/ccp.c
parent9dee069d8d6048e74348da40be452def9a54c470 (diff)
downloadsrc-test2-8d9b9867cc16764a1c3c058380310c1928924a69.tar.gz
src-test2-8d9b9867cc16764a1c3c058380310c1928924a69.zip
Notes
Diffstat (limited to 'usr.sbin/ppp/ccp.c')
-rw-r--r--usr.sbin/ppp/ccp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ppp/ccp.c b/usr.sbin/ppp/ccp.c
index bf4d0736f66d..3af2113891be 100644
--- a/usr.sbin/ppp/ccp.c
+++ b/usr.sbin/ppp/ccp.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: ccp.c,v 1.30.2.33 1998/04/07 00:53:22 brian Exp $
+ * $Id: ccp.c,v 1.30.2.34 1998/04/16 00:25:50 brian Exp $
*
* TODO:
* o Support other compression protocols
@@ -299,11 +299,14 @@ CcpLayerFinish(struct fsm *fp)
if (ccp->in.state != NULL) {
(*algorithm[ccp->in.algorithm]->i.Term)(ccp->in.state);
ccp->in.state = NULL;
+ ccp->in.algorithm = -1;
}
if (ccp->out.state != NULL) {
(*algorithm[ccp->out.algorithm]->o.Term)(ccp->out.state);
ccp->out.state = NULL;
+ ccp->out.algorithm = -1;
}
+ ccp->his_reject = ccp->my_reject = 0;
}
static void