From 23b4c19ae587d0b2f668fe12cb7e4c69494c79e1 Mon Sep 17 00:00:00 2001 From: Benoit Plessis Date: Sat, 1 Sep 2018 03:15:18 +0200 Subject: [PATCH] =?UTF-8?q?La=20fermeture=20de=20session=20se=20fait=20alo?= =?UTF-8?q?rs=20que=20l'utilisateur=20est=20encore=20connect=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pam_ela.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pam_ela.c b/pam_ela.c index c63f28c..e8c7444 100644 --- a/pam_ela.c +++ b/pam_ela.c @@ -419,8 +419,8 @@ PAM_EXTERN int pam_sm_close_session(pam_handle_t *pamh, int flags, pam_syslog(pamh, LOG_INFO, "Active sessions for user %s: %d",user, logged_users); - // Check if we were the last user - if (logged_users == 0) + // Check if we are the last user + if (logged_users == 1) { sprintf(dhclient_pidfile,"/var/run/dhclient-%s",link_name);