summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-07-17 14:14:44 +0400
committerDmitry Kozlov <xeb@mail.ru>2014-07-17 14:14:44 +0400
commit953a944839db2dd4cf4eef5ef9cd94e4ba08e4d8 (patch)
treea2895b4e2cb9d0c9385bfc11d4463788cd494c1e /accel-pppd/ppp
parent5e824440c2044a443d73d53650505f55c6c4038b (diff)
downloadaccel-ppp-953a944839db2dd4cf4eef5ef9cd94e4ba08e4d8.tar.gz
accel-ppp-953a944839db2dd4cf4eef5ef9cd94e4ba08e4d8.zip
improved 'single session' mechanism
Diffstat (limited to 'accel-pppd/ppp')
-rw-r--r--accel-pppd/ppp/ppp_auth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/accel-pppd/ppp/ppp_auth.c b/accel-pppd/ppp/ppp_auth.c
index b32400e2..442db7ed 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);