diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-06-12 16:53:43 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2008-06-12 16:53:43 +0000 |
commit | 72d4ac23660326e76443cf18f0ed8c2e4792d268 (patch) | |
tree | dec24311250bb61298456c3eb0e8937c3a4b7561 /nscd/grpcache.c | |
parent | 8ba7d5cebbd4acf40dc8d22982baa50c2e1fd194 (diff) | |
download | glibc-72d4ac23660326e76443cf18f0ed8c2e4792d268.tar glibc-72d4ac23660326e76443cf18f0ed8c2e4792d268.tar.gz glibc-72d4ac23660326e76443cf18f0ed8c2e4792d268.tar.bz2 glibc-72d4ac23660326e76443cf18f0ed8c2e4792d268.zip |
Updated to fedora-glibc-20080612T1619cvs/fedora-glibc-2_8_90-6
Diffstat (limited to 'nscd/grpcache.c')
-rw-r--r-- | nscd/grpcache.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nscd/grpcache.c b/nscd/grpcache.c index e391dc3984..c49c0e1906 100644 --- a/nscd/grpcache.c +++ b/nscd/grpcache.c @@ -190,7 +190,7 @@ cache_addgr (struct database_dyn *db, int fd, request_header *req, gr_mem_len_total += gr_mem_len[gr_mem_cnt]; } - written = total = (sizeof (struct dataset) + written = total = (offsetof (struct dataset, strdata) + gr_mem_cnt * sizeof (uint32_t) + gr_name_len + gr_passwd_len + gr_mem_len_total); @@ -252,6 +252,9 @@ cache_addgr (struct database_dyn *db, int fd, request_header *req, char *key_copy = cp + key_offset; assert (key_copy == (char *) rawmemchr (cp, '\0') + 1); + assert (cp == dataset->strdata + total - offsetof (struct dataset, + strdata)); + /* Now we can determine whether on refill we have to create a new record or not. */ if (he != NULL) |