From: Frederic Bourgeois Date: Tue, 19 Jun 2012 02:24:57 +0000 (-0600) Subject: Bug 3526: permit high-speed nonce regeneration X-Git-Tag: SQUID_3_2_0_18~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b2ffb8f7d8e9ef8a910c81366076b4e060fc39f;p=thirdparty%2Fsquid.git Bug 3526: permit high-speed nonce regeneration --- 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); }