diff options
author | Günther Deschner <gd@samba.org> | 2009-05-05 12:54:21 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-05-05 12:54:21 +0200 |
commit | 290449aeae950d7490cdcf9d601052fc45bb84dd (patch) | |
tree | e96332c982db222530c12289323fd1a3e6f3486d /nsswitch | |
parent | 2c4725462e2251de887e043653aa0ce3eaa9771e (diff) | |
download | samba-290449aeae950d7490cdcf9d601052fc45bb84dd.tar.gz samba-290449aeae950d7490cdcf9d601052fc45bb84dd.tar.bz2 samba-290449aeae950d7490cdcf9d601052fc45bb84dd.zip |
s3-pam_winbind: Fix Bug 6253: Use correct value for password expiry calculation.
Patch from Blindauer Emmanuel <samba@mooby.net>.
Guenther
Diffstat (limited to 'nsswitch')
-rw-r--r-- | nsswitch/pam_winbind.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c index 0d33f59a23..545c87d0c4 100644 --- a/nsswitch/pam_winbind.c +++ b/nsswitch/pam_winbind.c @@ -914,7 +914,7 @@ static void _pam_warn_password_expiry(struct pwb_context *ctx, /* now check for the global password policy */ /* good catch from Ralf Haferkamp: an expiry of "never" is translated * to -1 */ - if (policy->expire <= 0) { + if (policy->expire == -1) { return; } |