From 8f83530b83bf8b8556a797ecfe9799bbd1eb5750 Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Tue, 19 Jun 2012 15:34:27 +0400 Subject: ppp: drop compressor settings on session termination --- accel-pppd/ppp/ppp_ccp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/accel-pppd/ppp/ppp_ccp.c b/accel-pppd/ppp/ppp_ccp.c index 297d9bc..7c4933a 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); -- cgit v1.2.3