diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-04-30 12:11:31 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2008-04-30 12:11:31 +0000 |
commit | ef73dbc1301bc42c132d15ae6ca866233c0beeb4 (patch) | |
tree | 7386ab88c4f2c43ac417a2ea0b0b19239bdc0b19 /nscd/aicache.c | |
parent | 14e44061ad888abbea7239599a9109b41776e41c (diff) |
Diffstat (limited to 'nscd/aicache.c')
-rw-r--r-- | nscd/aicache.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/nscd/aicache.c b/nscd/aicache.c index a69a7781d3..3de84821a4 100644 --- a/nscd/aicache.c +++ b/nscd/aicache.c @@ -262,7 +262,8 @@ addhstaiX (struct database_dyn *db, int fd, request_header *req, { dataset = (struct dataset *) mempool_alloc (db, total - + req->key_len); + + req->key_len, + IDX_result_data); if (dataset == NULL) ++db->head->addfailed; } @@ -338,7 +339,8 @@ addhstaiX (struct database_dyn *db, int fd, request_header *req, struct dataset *newp = (struct dataset *) mempool_alloc (db, total - + req->key_len); + + req->key_len, + IDX_result_data); if (__builtin_expect (newp != NULL, 1)) { /* Adjust pointer into the memory block. */ @@ -424,7 +426,8 @@ addhstaiX (struct database_dyn *db, int fd, request_header *req, if (fd != -1) TEMP_FAILURE_RETRY (send (fd, ¬found, 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) { |