aboutsummaryrefslogtreecommitdiff
path: root/nscd/grpcache.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-02-21 09:11:47 +0000
committerUlrich Drepper <drepper@redhat.com>2007-02-21 09:11:47 +0000
commitc8703f884991059dcaea8a78a4ae00ff7b1118eb (patch)
tree124997c7857db00525f25f3cc0404a38e4b0cc12 /nscd/grpcache.c
parent61705e06e11f119b447dffa44450363d61c6cb18 (diff)
downloadglibc-c8703f884991059dcaea8a78a4ae00ff7b1118eb.tar
glibc-c8703f884991059dcaea8a78a4ae00ff7b1118eb.tar.gz
glibc-c8703f884991059dcaea8a78a4ae00ff7b1118eb.tar.bz2
glibc-c8703f884991059dcaea8a78a4ae00ff7b1118eb.zip
* nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
* nscd/servicescache.c (cache_addserv): Likewise. * nscd/grpcache.c (cache_addgr): In case a record changed on refresh, adjust key_copy.
Diffstat (limited to 'nscd/grpcache.c')
-rw-r--r--nscd/grpcache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nscd/grpcache.c b/nscd/grpcache.c
index 54d1ef1eef..3852e8ca7f 100644
--- a/nscd/grpcache.c
+++ b/nscd/grpcache.c
@@ -279,6 +279,7 @@ cache_addgr (struct database_dyn *db, int fd, request_header *req,
/* Adjust pointers into the memory block. */
gr_name = (char *) newp + (gr_name - (char *) dataset);
cp = (char *) newp + (cp - (char *) dataset);
+ key_copy = (char *) newp + (key_copy - (char *) dataset);
dataset = memcpy (newp, dataset, total + n);
alloca_used = false;