]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Rmoved useless variable in auth_digest.cc.
authorFrancesco Chemolli <kinkie@squid-cache.org>
Sat, 22 Dec 2012 13:58:20 +0000 (14:58 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Sat, 22 Dec 2012 13:58:20 +0000 (14:58 +0100)
  Detected by Coverity Scan, issue 740594.

src/auth/digest/auth_digest.cc

index 608fbcd5d59c6e683a33cb8ae76626d5e2652e83..fb5b05c6236a3641284936dbc2b82c356ccdc44b 100644 (file)
@@ -129,7 +129,6 @@ static digest_nonce_h *
 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 ===
@@ -183,7 +182,7 @@ authenticateDigestNonceNew(void)
      * 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 */