diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2011-07-16 18:34:52 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2011-07-16 18:34:52 +0400 |
commit | 8e76381804b680bdb3a2026521df9382976914d1 (patch) | |
tree | f2906fc58c474efacfbe4e43ca731b55c94a82f8 /accel-pppd/ppp | |
parent | 08c719bf957e65033691f6497e6aeddc4ec3eb95 (diff) | |
download | accel-ppp-8e76381804b680bdb3a2026521df9382976914d1.tar.gz accel-ppp-8e76381804b680bdb3a2026521df9382976914d1.zip |
ppp: cleanup delayed works on termination
Diffstat (limited to 'accel-pppd/ppp')
-rw-r--r-- | accel-pppd/ppp/ppp_auth.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/accel-pppd/ppp/ppp_auth.c b/accel-pppd/ppp/ppp_auth.c index 9a0587f..b69c759 100644 --- a/accel-pppd/ppp/ppp_auth.c +++ b/accel-pppd/ppp/ppp_auth.c @@ -28,6 +28,8 @@ static int auth_layer_start(struct ppp_layer_data_t *); static void auth_layer_finish(struct ppp_layer_data_t *); static void auth_layer_free(struct ppp_layer_data_t *); +static void __ppp_auth_started(struct ppp_t *ppp); + struct auth_option_t { struct lcp_option_t opt; @@ -296,6 +298,8 @@ static void auth_layer_free(struct ppp_layer_data_t *ld) log_ppp_debug("auth_layer_free\n"); + triton_cancel_call(ad->ppp->ctrl->ctx, (triton_event_func)__ppp_auth_started); + _free(ad); } |