diff options
author | Kozlov Dmitry <dima@server> | 2011-08-24 15:13:06 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2011-08-24 15:13:06 +0400 |
commit | 4f9a2df99cd4dbc4724bfef9676383fad2707598 (patch) | |
tree | 03a663c46587724c3660db17906f254db7b63ff3 /accel-pppd/ppp/ppp_auth.c | |
parent | 5bb8b536b0caeeec9be31fbf87e74d97a29e1ee9 (diff) | |
download | accel-ppp-4f9a2df99cd4dbc4724bfef9676383fad2707598.tar.gz accel-ppp-4f9a2df99cd4dbc4724bfef9676383fad2707598.zip |
ppp: reworked layer startup procedure
ppp: make IPCP and IPV6CP optional depends on configuration
Diffstat (limited to 'accel-pppd/ppp/ppp_auth.c')
-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 b69c7599..29404d38 100644 --- a/accel-pppd/ppp/ppp_auth.c +++ b/accel-pppd/ppp/ppp_auth.c @@ -314,6 +314,10 @@ static void __ppp_auth_started(struct ppp_t *ppp) 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); } |