diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-09-05 06:47:36 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-09-05 06:47:36 +0000 |
commit | 3d73c4ba9cdbedb3cbe9abd28e9c8dc32df3f102 (patch) | |
tree | 41583710b40eec5918e8414d58724ec88429765d /nscd/grpcache.c | |
parent | 2a254592d07a7d8178e7774fb0288a621654b88c (diff) | |
download | glibc-3d73c4ba9cdbedb3cbe9abd28e9c8dc32df3f102.zip glibc-3d73c4ba9cdbedb3cbe9abd28e9c8dc32df3f102.tar.gz glibc-3d73c4ba9cdbedb3cbe9abd28e9c8dc32df3f102.tar.bz2 |
(cache_addgr): Use correct key length in cache_add calls.
Diffstat (limited to 'nscd/grpcache.c')
-rw-r--r-- | nscd/grpcache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nscd/grpcache.c b/nscd/grpcache.c index 6ee65f8..7315eec 100644 --- a/nscd/grpcache.c +++ b/nscd/grpcache.c @@ -306,8 +306,8 @@ cache_addgr (struct database_dyn *db, int fd, request_header *req, /* If the request was by GID, add that entry first. */ if (req->type != GETGRBYNAME) { - if (cache_add (GETGRBYGID, cp, n, &dataset->head, true, db, - owner) < 0) + if (cache_add (GETGRBYGID, cp, key_offset, &dataset->head, true, + db, owner) < 0) { /* Could not allocate memory. Make sure the data gets discarded. */ @@ -336,7 +336,7 @@ cache_addgr (struct database_dyn *db, int fd, request_header *req, == 0, 1)) { if (req->type == GETGRBYNAME) - (void) cache_add (GETGRBYGID, cp, n, &dataset->head, + (void) cache_add (GETGRBYGID, cp, key_offset, &dataset->head, req->type != GETGRBYNAME, db, owner); } else if (first) |