From d3f8acb39b5b7f7390ac7e6c5d09648837683d5f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 14 Sep 1998 22:04:05 +0000 Subject: Update. 1998-09-14 Ulrich Drepper * nscd/pwdcache.c (cache_pwdinit): Allocate uidtbl of correct size. --- nscd/TODO | 2 -- nscd/pwdcache.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'nscd') diff --git a/nscd/TODO b/nscd/TODO index 16c2835..a0b8427 100644 --- a/nscd/TODO +++ b/nscd/TODO @@ -1,6 +1,4 @@ -* We should use readv/writev for group entries, too - * If we have reached the max. # of process, close accept socket. ! THIS COULD CAUSE THE KERNEL TO HANG ! BE CAREFUL ! diff --git a/nscd/pwdcache.c b/nscd/pwdcache.c index e2bf73a..9b7c0a0 100644 --- a/nscd/pwdcache.c +++ b/nscd/pwdcache.c @@ -110,7 +110,7 @@ cache_pwdinit () pwdtbl = calloc (modulo, sizeof (pwdhash)); if (pwdtbl == NULL) return -1; - uidtbl = calloc (modulo, sizeof (pwdhash)); + uidtbl = calloc (modulo, sizeof (uidhash)); if (uidtbl == NULL) return -1; negtbl = calloc (modulo, sizeof (neghash)); -- cgit v1.1