From 9840f628c62926bbdb35e08f1d94260a91b751d7 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 2 May 2006 16:42:58 +0000 Subject: [PATCH] (nscd_init): Correct initialization of in-memory database structure. --- nscd/connections.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nscd/connections.c b/nscd/connections.c index 38d5f817fd..8b4493a44c 100644 --- a/nscd/connections.c +++ b/nscd/connections.c @@ -722,7 +722,7 @@ cannot set socket to close on exec: %s; disabling paranoia mode"), dbs[cnt].head = xmalloc (sizeof (struct database_pers_head) + (dbs[cnt].suggested_module * sizeof (ref_t))); - memset (dbs[cnt].head, '\0', sizeof (dbs[cnt].head)); + memset (dbs[cnt].head, '\0', sizeof (struct database_pers_head)); assert (~ENDREF == 0); memset (dbs[cnt].head->array, '\xff', dbs[cnt].suggested_module * sizeof (ref_t)); -- 2.11.4.GIT