about summary refs log tree commit diff
path: root/nscd
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-05-02 16:45:25 +0000
committerUlrich Drepper <drepper@redhat.com>2006-05-02 16:45:25 +0000
commit25059769a425a287a71e17ce535d3f5321284198 (patch)
tree4323c2af2f861f0bc2de751ff6599d2dbcee305b /nscd
parent67e2156d930c88bc3c2b59d2adbb99f6ff42b717 (diff)
downloadglibc-25059769a425a287a71e17ce535d3f5321284198.tar.gz
glibc-25059769a425a287a71e17ce535d3f5321284198.tar.xz
glibc-25059769a425a287a71e17ce535d3f5321284198.zip
[BZ #2632]
2006-05-02  Ulrich Drepper  <drepper@redhat.com>
	[BZ #2632]
	* nscd/connections.c (nscd_init): Correct initialization of
	in-memory database structure.

	* iconvdata/utf-7.c: Don't require more than one character after
Diffstat (limited to 'nscd')
-rw-r--r--nscd/connections.c2
1 files changed, 1 insertions, 1 deletions
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));