From: Frederic Bourgeois Date: Thu, 7 Jun 2012 10:27:46 +0000 (-0600) Subject: Bug 3526: permit high-speed nonce regeneration X-Git-Tag: BumpSslServerFirst.take09~3^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58171e19256ddbe5e3cd7c5f44d02380836b3850;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); }