summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2011-09-08 20:48:56 +0400
committerKozlov Dmitry <xeb@mail.ru>2011-09-08 20:48:56 +0400
commitb573534e69970273bab36b0041142fe0692c30e1 (patch)
tree659482e53adf2e206bb2e74f3a463f2d11fc7228 /accel-pppd/ppp
parent8a0f7065300efbe6e916ec7e2a298dc8feec1298 (diff)
downloadaccel-ppp-b573534e69970273bab36b0041142fe0692c30e1.tar.gz
accel-ppp-b573534e69970273bab36b0041142fe0692c30e1.zip
ppp: check if session is in terminating phase before marking auth layer started
Diffstat (limited to 'accel-pppd/ppp')
-rw-r--r--accel-pppd/ppp/ppp_auth.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/accel-pppd/ppp/ppp_auth.c b/accel-pppd/ppp/ppp_auth.c
index de5ce92c..425a31a4 100644
--- a/accel-pppd/ppp/ppp_auth.c
+++ b/accel-pppd/ppp/ppp_auth.c
@@ -315,11 +315,12 @@ static void __ppp_auth_started(struct ppp_t *ppp)
{
struct auth_layer_data_t *ad = container_of(ppp_find_layer_data(ppp, &auth_layer), typeof(*ad), ld);
+ if (ppp->terminating)
+ return;
+
log_ppp_debug("auth_layer_started\n");
ppp_layer_started(ppp, &ad->ld);
- if (ppp->terminating)
- return;
log_ppp_info1("%s: authentication successed\n", ppp->username);
triton_event_fire(EV_PPP_AUTHORIZED, ppp);