summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp/ppp_ccp.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2012-06-19 15:34:27 +0400
committerKozlov Dmitry <xeb@mail.ru>2012-06-19 15:34:27 +0400
commit8f83530b83bf8b8556a797ecfe9799bbd1eb5750 (patch)
tree1fab253fa68c2b0a95da4ecaab37da1aee7fda00 /accel-pppd/ppp/ppp_ccp.c
parentc553a7bbbc96d36ba4d0999bb172c7a926518eb1 (diff)
downloadaccel-ppp-8f83530b83bf8b8556a797ecfe9799bbd1eb5750.tar.gz
accel-ppp-8f83530b83bf8b8556a797ecfe9799bbd1eb5750.zip
ppp: drop compressor settings on session termination
Diffstat (limited to 'accel-pppd/ppp/ppp_ccp.c')
-rw-r--r--accel-pppd/ppp/ppp_ccp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/accel-pppd/ppp/ppp_ccp.c b/accel-pppd/ppp/ppp_ccp.c
index 297d9bc7..7c4933a4 100644
--- a/accel-pppd/ppp/ppp_ccp.c
+++ b/accel-pppd/ppp/ppp_ccp.c
@@ -180,7 +180,9 @@ void ccp_layer_free(struct ppp_layer_data_t *ld)
struct ppp_ccp_t *ccp = container_of(ld, typeof(*ccp), ld);
log_ppp_debug("ccp_layer_free\n");
-
+
+ ccp_set_flags(ccp->ppp->unit_fd, 0, 0);
+
ppp_unregister_handler(ccp->ppp, &ccp->hnd);
ccp_options_free(ccp);
ppp_fsm_free(&ccp->fsm);