Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 25 Jan 2000 04:51:45 +0000 (04:51 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 25 Jan 2000 04:51:45 +0000 (04:51 +0000)
* nscd/hstcache.c: Don't count in mapped IPv6 addresses in total
size anymore.

ChangeLog
nscd/hstcache.c

index a8387f8..a83f18a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-01-24  Ulrich Drepper  <drepper@cygnus.com>
 
+       * nscd/hstcache.c: Don't count in mapped IPv6 addresses in total
+       size anymore.
+
        * locale/programs/ld-collate.c (collate_output): Also handle
        IGNOREd characters in the simple way when generating the multibyte
        table.
index a2f8115..5ac0cee 100644 (file)
@@ -157,9 +157,7 @@ cache_addhst (struct database *db, int fd, request_header *req, void *key,
       total += (sizeof (struct hostdata)
                + h_name_len
                + h_aliases_cnt * sizeof (size_t)
-               + h_addr_list_cnt * (hst->h_length
-                                    + (hst->h_length == NS_INADDRSZ
-                                       ? NS_IN6ADDRSZ : 0)));
+               + h_addr_list_cnt * hst->h_length);
 
       data = (struct hostdata *) malloc (total + req->key_len);
       if (data == NULL)