From 26fb0031c0572d643aa719362f8d58149077da2d Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Fri, 6 Jul 2012 14:38:51 +0400 Subject: ppp: drop compressor settings on session initiation --- accel-pppd/ppp/ppp_ccp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accel-pppd/ppp/ppp_ccp.c b/accel-pppd/ppp/ppp_ccp.c index 7c4933a..87ce857 100644 --- a/accel-pppd/ppp/ppp_ccp.c +++ b/accel-pppd/ppp/ppp_ccp.c @@ -139,6 +139,8 @@ int ccp_layer_start(struct ppp_layer_data_t *ld) log_ppp_debug("ccp_layer_start\n"); + ccp_set_flags(ccp->ppp->unit_fd, 0, 0); + if (list_empty(&ccp->options) || !conf_ccp) { ccp->started = 1; ppp_layer_started(ccp->ppp, &ccp->ld); @@ -181,8 +183,6 @@ void ccp_layer_free(struct ppp_layer_data_t *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 From 1c11bdd4467dcd7a2266994eda344b546f962aaa Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Fri, 6 Jul 2012 14:45:11 +0400 Subject: log_file: fixed double list deletetion if per user log file creating failed --- accel-pppd/logs/log_file.c | 1 - 1 file changed, 1 deletion(-) diff --git a/accel-pppd/logs/log_file.c b/accel-pppd/logs/log_file.c index 48f4351..0bba405 100644 --- a/accel-pppd/logs/log_file.c +++ b/accel-pppd/logs/log_file.c @@ -514,7 +514,6 @@ static void ev_ppp_authorized1(struct ppp_t *ppp) out_err: _free(fname); - list_del(&lpd->pd.entry); free_lpd(lpd); } -- cgit v1.2.3