From 211b9f56ccad2d654ff2d88d4540aec91814d944 Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Thu, 14 Jun 2012 09:08:03 +0000
Subject: [PATCH] Fix OpenDJ-519 - Exception raised when bind fails and debug logging is enabled Fix issue with zealous cleanup. 

---
 opends/src/server/org/opends/server/core/PasswordPolicyState.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/PasswordPolicyState.java b/opends/src/server/org/opends/server/core/PasswordPolicyState.java
index 0354596..e144f4b 100644
--- a/opends/src/server/org/opends/server/core/PasswordPolicyState.java
+++ b/opends/src/server/org/opends/server/core/PasswordPolicyState.java
@@ -837,7 +837,10 @@
     {
       highestFailureTime = currentTime;
     }
+    // Update the current policy state
+    failureTimes.add(highestFailureTime);
 
+    // And the attribute in the user entry
     AttributeType type =
          DirectoryServer.getAttributeType(OP_ATTR_PWPOLICY_FAILURE_TIME_LC);
     if (type == null)

--
Gitblit v1.10.0