Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse McConnell2012-03-16 16:39:10 -0400
committerJesse McConnell2012-03-16 16:39:10 -0400
commitc7a4c80da513d5ff29b354ca202ebd87fe9c8b7d (patch)
tree1916191d285e2129ccf87b431ec325f990230da9 /jetty-security/src
parentd717be14502554ceb31dadac9aab53973c619b08 (diff)
downloadorg.eclipse.jetty.project-c7a4c80da513d5ff29b354ca202ebd87fe9c8b7d.tar.gz
org.eclipse.jetty.project-c7a4c80da513d5ff29b354ca202ebd87fe9c8b7d.tar.xz
org.eclipse.jetty.project-c7a4c80da513d5ff29b354ca202ebd87fe9c8b7d.zip
[Bug 373421] address potential race condition related to the nonce queue
removing the same nonce twice
Diffstat (limited to 'jetty-security/src')
-rw-r--r--jetty-security/src/main/java/org/eclipse/jetty/security/authentication/DigestAuthenticator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/DigestAuthenticator.java b/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/DigestAuthenticator.java
index 51833fad78..d762ebefbc 100644
--- a/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/DigestAuthenticator.java
+++ b/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/DigestAuthenticator.java
@@ -254,7 +254,7 @@ public class DigestAuthenticator extends LoginAuthenticator
Nonce nonce=_nonceQueue.peek();
while (nonce!=null && nonce._ts<expired)
{
- _nonceQueue.remove();
+ _nonceQueue.remove(nonce);
_nonceCount.remove(nonce._nonce);
nonce=_nonceQueue.peek();
}

Back to the top