summaryrefslogtreecommitdiff
path: root/nscd/initgrcache.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2008-04-30 12:11:31 +0000
committerJakub Jelinek <jakub@redhat.com>2008-04-30 12:11:31 +0000
commitef73dbc1301bc42c132d15ae6ca866233c0beeb4 (patch)
tree7386ab88c4f2c43ac417a2ea0b0b19239bdc0b19 /nscd/initgrcache.c
parent14e44061ad888abbea7239599a9109b41776e41c (diff)
Diffstat (limited to 'nscd/initgrcache.c')
-rw-r--r--nscd/initgrcache.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/nscd/initgrcache.c b/nscd/initgrcache.c
index 157cd7860c..6a95fb5992 100644
--- a/nscd/initgrcache.c
+++ b/nscd/initgrcache.c
@@ -197,7 +197,8 @@ addinitgroupsX (struct database_dyn *db, int fd, request_header *req,
written = TEMP_FAILURE_RETRY (send (fd, &notfound, total,
MSG_NOSIGNAL));
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len);
+ dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len,
+ IDX_result_data);
/* If we cannot permanently store the result, so be it. */
if (dataset != NULL)
{
@@ -259,7 +260,8 @@ addinitgroupsX (struct database_dyn *db, int fd, request_header *req,
if (he == NULL)
{
dataset = (struct dataset *) mempool_alloc (db,
- total + req->key_len);
+ total + req->key_len,
+ IDX_result_data);
if (dataset == NULL)
++db->head->addfailed;
}
@@ -329,7 +331,8 @@ addinitgroupsX (struct database_dyn *db, int fd, request_header *req,
/* We have to create a new record. Just allocate
appropriate memory and copy it. */
struct dataset *newp
- = (struct dataset *) mempool_alloc (db, total + req->key_len);
+ = (struct dataset *) mempool_alloc (db, total + req->key_len,
+ IDX_result_data);
if (newp != NULL)
{
/* Adjust pointer into the memory block. */