On 11/19/2012 04:59 PM, Pavel Březina wrote:
Self nack.
- if (pwd_exp_warning == 0 ||
- difftime(now + pwd_exp_warning, ppolicy->expire) > 0.0) {
+ if (pwd_exp_warning != 0 &&
+ difftime(pwd_exp_warning, ppolicy->expire) > 0.0) {
goto done;
}
We don't need to test if pwd_exp_warning != 0, because if it is 0 then
difftime returns value <= 0 and the condition fails.
New patch is attached.