]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
fix checking hash_create() return value
authorwessels <>
Tue, 18 Aug 1998 05:26:58 +0000 (05:26 +0000)
committerwessels <>
Tue, 18 Aug 1998 05:26:58 +0000 (05:26 +0000)
src/acl.cc

index 9c78e187691bf514bdebcb4b202412b5262ef779..a960c274340b48f235e2b6325d3cfbfb1f8c4bc4 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: acl.cc,v 1.176 1998/08/17 22:04:54 wessels Exp $
+ * $Id: acl.cc,v 1.177 1998/08/17 23:26:58 wessels Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -670,11 +670,8 @@ aclParseProxyAuth(void *data)
        p->timeout = 10;
 
     /* First time around, 7921 should be big enough */
-    if ((p->hash = hash_create((HASHCMP *) strcmp, 7921, hash_string)) < 0) {
-       debug(28, 0) ("aclParseProxyAuth: cannot create hash table, turning proxy_auth off\n");
-       *q = NULL;
-       return;
-    }
+    p->hash = hash_create((HASHCMP *) strcmp, 7921, hash_string);
+    assert(p->hash);
     *q = p;
     return;
 }