diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-07-06 14:38:51 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-07-06 14:38:51 +0400 |
commit | 26fb0031c0572d643aa719362f8d58149077da2d (patch) | |
tree | 296b9b4b96172add1908fc54da761bb3eef807c6 /accel-pppd | |
parent | ef7a38b7a8f74315d6546564585c679da1a714ae (diff) | |
download | accel-ppp-xebd-26fb0031c0572d643aa719362f8d58149077da2d.tar.gz accel-ppp-xebd-26fb0031c0572d643aa719362f8d58149077da2d.zip |
ppp: drop compressor settings on session initiation
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/ppp/ppp_ccp.c | 4 |
1 files 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); |