Skip to content

Commit

Permalink
La fermeture de session se fait alors que l'utilisateur est encore co…
Browse files Browse the repository at this point in the history
…nnecté
  • Loading branch information
bplessis authored and ptitoliv committed Sep 4, 2018
1 parent 474081b commit 23b4c19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pam_ela.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 23b4c19

Please sign in to comment.