Detected by Coverity Scan, issue 740594.
authenticateDigestNonceNew(void)
{
digest_nonce_h *newnonce = static_cast < digest_nonce_h * >(digest_nonce_pool->alloc());
- digest_nonce_h *temp;
/* NONCE CREATION - NOTES AND REASONING. RBC 20010108
* === EXCERPT FROM RFC 2617 ===
* have a random factor
*/
- while ((temp = authenticateDigestNonceFindNonce((char const *) (newnonce->key)))) {
+ while (authenticateDigestNonceFindNonce((char const *) (newnonce->key))) {
/* create a new nonce */
newnonce->noncedata.randomdata = squid_random();
/* Bug 3526 high performance fix: add 1 second to creationtime to avoid duplication */