From 953a944839db2dd4cf4eef5ef9cd94e4ba08e4d8 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Thu, 17 Jul 2014 14:14:44 +0400 Subject: improved 'single session' mechanism --- accel-pppd/ppp/ppp_auth.c | 1 + 1 file changed, 1 insertion(+) (limited to 'accel-pppd/ppp/ppp_auth.c') 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); -- cgit v1.2.3