summary refs log tree commit diff
path: root/nscd
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-09-05 07:02:13 +0000
committerUlrich Drepper <drepper@redhat.com>2004-09-05 07:02:13 +0000
commit03e157d8498ec5bc064de89fad3d98c4c25157a7 (patch)
tree92c344c6610c8ccf7b8b75dabfa2c75613fc7e76 /nscd
parent3d73c4ba9cdbedb3cbe9abd28e9c8dc32df3f102 (diff)
downloadglibc-03e157d8498ec5bc064de89fad3d98c4c25157a7.tar.gz
glibc-03e157d8498ec5bc064de89fad3d98c4c25157a7.tar.xz
glibc-03e157d8498ec5bc064de89fad3d98c4c25157a7.zip
Update.
2004-09-04  Ulrich Drepper  <drepper@redhat.com>

	* nscd/pwdcache.c (cache_addpw): Use correct key length in
	cache_add calls.
	* nscd/grpcache.c (cache_addgr): Likewise.
Diffstat (limited to 'nscd')
-rw-r--r--nscd/pwdcache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nscd/pwdcache.c b/nscd/pwdcache.c
index 0e3f626986..b3227785ae 100644
--- a/nscd/pwdcache.c
+++ b/nscd/pwdcache.c
@@ -302,8 +302,8 @@ cache_addpw (struct database_dyn *db, int fd, request_header *req,
 	  /* If the request was by UID, add that entry first.  */
 	  if (req->type != GETPWBYNAME)
 	    {
-	      if (cache_add (GETPWBYUID, cp, n, &dataset->head, true, db,
-			     owner) < 0)
+	      if (cache_add (GETPWBYUID, cp, key_offset, &dataset->head, true,
+			     db, owner) < 0)
 		{
 		  /* Could not allocate memory.  Make sure the data gets
 		     discarded.  */
@@ -332,7 +332,7 @@ cache_addpw (struct database_dyn *db, int fd, request_header *req,
 					   db, owner) == 0, 1))
 	    {
 	      if (req->type == GETPWBYNAME)
-		(void) cache_add (GETPWBYUID, cp, n, &dataset->head,
+		(void) cache_add (GETPWBYUID, cp, key_offset, &dataset->head,
 				  req->type != GETPWBYNAME, db, owner);
 	    }
 	  else if (first)