aboutsummaryrefslogtreecommitdiff
path: root/nscd/pwdcache.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-02-21 09:05:36 +0000
committerUlrich Drepper <drepper@redhat.com>2007-02-21 09:05:36 +0000
commit61705e06e11f119b447dffa44450363d61c6cb18 (patch)
treec9006f0e2184ea501445ae623488382bd39208ea /nscd/pwdcache.c
parent0f7769f736a22aa930bebe3aa4f9656b671072b5 (diff)
downloadglibc-61705e06e11f119b447dffa44450363d61c6cb18.zip
glibc-61705e06e11f119b447dffa44450363d61c6cb18.tar.gz
glibc-61705e06e11f119b447dffa44450363d61c6cb18.tar.bz2
[BZ #4074]
* nscd/pwdcache.c (cache_addpw): In case a record changed on refresh, adjust key_copy.
Diffstat (limited to 'nscd/pwdcache.c')
-rw-r--r--nscd/pwdcache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nscd/pwdcache.c b/nscd/pwdcache.c
index 0461ec9..ab41bcc 100644
--- a/nscd/pwdcache.c
+++ b/nscd/pwdcache.c
@@ -274,6 +274,7 @@ cache_addpw (struct database_dyn *db, int fd, request_header *req,
{
/* Adjust pointer into the memory block. */
cp = (char *) newp + (cp - (char *) dataset);
+ key_copy = (char *) newp + (key_copy - (char *) dataset);
dataset = memcpy (newp, dataset, total + n);
alloca_used = false;