summaryrefslogtreecommitdiffstats
path: root/daemons
diff options
context:
space:
mode:
Diffstat (limited to 'daemons')
-rw-r--r--daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c
index c36189987..cac8bf45f 100644
--- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c
+++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c
@@ -948,7 +948,7 @@ Slapi_Value **ipapwd_setPasswordHistory(Slapi_Mods *smods,
data->policy.history_length,
pwd_history, &new_pwd_history, &n);
- if (ret) {
+ if (ret && data->policy.history_length) {
LOG_FATAL("failed to generate new password history!\n");
goto done;
}