From: Günther Deschner Date: Tue, 5 May 2009 10:54:21 +0000 (+0200) Subject: s3-pam_winbind: Fix Bug 6253: Use correct value for password expiry calculation. X-Git-Tag: tdb-1.1.5~734 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=290449aeae950d7490cdcf9d601052fc45bb84dd;p=thirdparty%2Fsamba.git s3-pam_winbind: Fix Bug 6253: Use correct value for password expiry calculation. Patch from Blindauer Emmanuel . Guenther --- diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c index 0d33f59a23c..545c87d0c4b 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; }