From 1b2ffb8f7d8e9ef8a910c81366076b4e060fc39f Mon Sep 17 00:00:00 2001 From: Frederic Bourgeois Date: Mon, 18 Jun 2012 20:24:57 -0600 Subject: [PATCH] Bug 3526: permit high-speed nonce regeneration --- src/auth/digest/auth_digest.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/auth/digest/auth_digest.cc b/src/auth/digest/auth_digest.cc index ff3d0498e2..6765b65ac0 100644 --- a/src/auth/digest/auth_digest.cc +++ b/src/auth/digest/auth_digest.cc @@ -185,7 +185,8 @@ authenticateDigestNonceNew(void) while ((temp = authenticateDigestNonceFindNonce((char const *) (newnonce->key)))) { /* create a new nonce */ newnonce->noncedata.randomdata = squid_random(); - newnonce->noncedata.creationtime = current_time.tv_sec; + /* Bug 3526 high performance fix: add 1 second to creationtime to avoid duplication */ + newnonce->noncedata.creationtime++; authDigestNonceEncode(newnonce); } -- 2.47.2