diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-11-25 21:29:30 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-11-25 21:29:30 +0000 |
commit | e8667ddc01786cfe79861a0031d6244212fd7a65 (patch) | |
tree | 4fdb82b812bf2e98829db72a095f90efb7e60ab1 /nscd/pwdcache.c | |
parent | 30294ea4495e48e0103fee4d855737a281cc49fa (diff) | |
download | glibc-e8667ddc01786cfe79861a0031d6244212fd7a65.tar glibc-e8667ddc01786cfe79861a0031d6244212fd7a65.tar.gz glibc-e8667ddc01786cfe79861a0031d6244212fd7a65.tar.bz2 glibc-e8667ddc01786cfe79861a0031d6244212fd7a65.zip |
Clear array before use.
* nscd/hstcache.c (cache_addhst): Likewise.
* nscd/grpcache.c (cache_addgr): Likewise.
* nscd/servicescache.c (cache_addserv): Likewise.
* nscd/pwdcache.c (cache_addpw): Likewise.
* nscd/initgrcache.c (addinitgroupsX): Likewise.
Diffstat (limited to 'nscd/pwdcache.c')
-rw-r--r-- | nscd/pwdcache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nscd/pwdcache.c b/nscd/pwdcache.c index 51ea113476..bc1b6bab2f 100644 --- a/nscd/pwdcache.c +++ b/nscd/pwdcache.c @@ -280,6 +280,8 @@ cache_addpw (struct database_dyn *db, int fd, request_header *req, dataset = memcpy (newp, dataset, total + n); alloca_used = false; } + else + ++db->head->addfailed; /* Mark the old record as obsolete. */ dh->usable = false; |