]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
need to set clear flag on memAlloc() calls
authorwessels <>
Fri, 6 Feb 1998 04:10:36 +0000 (04:10 +0000)
committerwessels <>
Fri, 6 Feb 1998 04:10:36 +0000 (04:10 +0000)
src/net_db.cc

index 395728e23e12df4183f638963018a19aa2d7dacb..3412680cd8fd3e444f2426a524a00bb10e8e047f 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: net_db.cc,v 1.62 1998/02/05 20:54:38 wessels Exp $
+ * $Id: net_db.cc,v 1.63 1998/02/05 21:10:36 wessels Exp $
  *
  * DEBUG: section 37    Network Measurement Database
  * AUTHOR: Duane Wessels
@@ -82,7 +82,7 @@ netdbHashDelete(const char *key)
 static void
 netdbHostInsert(netdbEntry * n, const char *hostname)
 {
-    net_db_name *x = memAllocate(MEM_NET_DB_NAME, 0);
+    net_db_name *x = memAllocate(MEM_NET_DB_NAME, 1);
     x->name = xstrdup(hostname);
     x->next = n->hosts;
     n->hosts = x;
@@ -197,7 +197,7 @@ netdbAdd(struct in_addr addr)
     if (memInUse(MEM_NETDBENTRY) > Config.Netdb.high)
        netdbPurgeLRU();
     if ((n = netdbLookupAddr(addr)) == NULL) {
-       n = memAllocate(MEM_NETDBENTRY, 0);
+       n = memAllocate(MEM_NETDBENTRY, 1);
        netdbHashInsert(n, addr);
     }
     return n;
@@ -436,7 +436,7 @@ netdbReloadState(void)
        if ((t = strtok(NULL, w_space)) == NULL)
            continue;
        N.last_use_time = (time_t) atoi(t);
-       n = memAllocate(MEM_NETDBENTRY, 0);
+       n = memAllocate(MEM_NETDBENTRY, 1);
        xmemcpy(n, &N, sizeof(netdbEntry));
        netdbHashInsert(n, addr);
        while ((t = strtok(NULL, w_space)) != NULL) {