diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-07-17 14:14:44 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-07-17 14:14:44 +0400 |
commit | 953a944839db2dd4cf4eef5ef9cd94e4ba08e4d8 (patch) | |
tree | a2895b4e2cb9d0c9385bfc11d4463788cd494c1e /accel-pppd/ppp/ppp_auth.c | |
parent | 5e824440c2044a443d73d53650505f55c6c4038b (diff) | |
download | accel-ppp-953a944839db2dd4cf4eef5ef9cd94e4ba08e4d8.tar.gz accel-ppp-953a944839db2dd4cf4eef5ef9cd94e4ba08e4d8.zip |
improved 'single session' mechanism
Diffstat (limited to 'accel-pppd/ppp/ppp_auth.c')
-rw-r--r-- | accel-pppd/ppp/ppp_auth.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/accel-pppd/ppp/ppp_auth.c b/accel-pppd/ppp/ppp_auth.c index b32400e..442db7e 100644 --- a/accel-pppd/ppp/ppp_auth.c +++ b/accel-pppd/ppp/ppp_auth.c @@ -352,6 +352,7 @@ void __export ppp_auth_failed(struct ppp_t *ppp, char *username) pthread_rwlock_wrlock(&ses_lock); if (!ppp->ses.username) ppp->ses.username = _strdup(username); + ppp->ses.terminate_cause = TERM_AUTH_ERROR; pthread_rwlock_unlock(&ses_lock); log_ppp_info1("%s: authentication failed\n", username); log_info1("%s: authentication failed\n", username); |