]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Corrected port of patch for Bug #577. Issue found by Gonzalo Arana
authorhno <>
Wed, 25 Jan 2006 20:16:11 +0000 (20:16 +0000)
committerhno <>
Wed, 25 Jan 2006 20:16:11 +0000 (20:16 +0000)
src/external_acl.cc

index 7ffd19f44887b84f928e561dacb4b33aa9ab4f54..c7ee5a18593514d7ead70b5f2a7f626b49cce178 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: external_acl.cc,v 1.66 2005/09/17 05:50:08 wessels Exp $
+ * $Id: external_acl.cc,v 1.67 2006/01/25 13:16:11 hno Exp $
  *
  * DEBUG: section 82    External ACL
  * AUTHOR: Henrik Nordstrom, MARA Systems AB
@@ -1083,14 +1083,10 @@ externalAclHandleReply(void *data, char *reply)
         if (reply)
             entry = external_acl_cache_add(state->def, state->key, entryData);
         else {
-            if (reply)
-                entry = (external_acl_entry *)hash_lookup(state->def->cache, state->key);
-            else {
-                external_acl_entry *oldentry = (external_acl_entry *)hash_lookup(state->def->cache, state->key);
+            external_acl_entry *oldentry = (external_acl_entry *)hash_lookup(state->def->cache, state->key);
 
-                if (oldentry)
-                    external_acl_cache_delete(state->def, oldentry);
-            }
+            if (oldentry)
+                external_acl_cache_delete(state->def, oldentry);
         }
     }