]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
ASState cbdata type must be initialized before calling asnAclInitialize().
authorwessels <>
Thu, 11 Jan 2001 07:02:34 +0000 (07:02 +0000)
committerwessels <>
Thu, 11 Jan 2001 07:02:34 +0000 (07:02 +0000)
src/asn.cc

index 8069e702f7cd92da6d7330ab0e2214a9629613e0..8ee597257b695a3c03bcf2c3c68e3959d6b1a846 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: asn.cc,v 1.66 2001/01/05 09:51:36 adrian Exp $
+ * $Id: asn.cc,v 1.67 2001/01/11 00:02:34 wessels Exp $
  *
  * DEBUG: section 53    AS Number handling
  * AUTHOR: Duane Wessels, Kostas Anagnostakis
@@ -158,12 +158,12 @@ asnInit(void)
     extern int max_keylen;
     static int inited = 0;
     max_keylen = 40;
+    CBDATA_INIT_TYPE(ASState);
     if (0 == inited++)
        rn_init();
     rn_inithead((void **) &AS_tree_head, 8);
     asnAclInitialize(Config.aclList);
     cachemgrRegister("asndb", "AS Number Database", asnStats, 0, 1);
-    CBDATA_INIT_TYPE(ASState);
 }
 
 void