From: Ulrich Drepper Date: Wed, 21 Feb 2007 09:05:36 +0000 (+0000) Subject: [BZ #4074] X-Git-Tag: cvs/fedora-glibc-20070221T1011~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61705e06e11f119b447dffa44450363d61c6cb18;p=thirdparty%2Fglibc.git [BZ #4074] * nscd/pwdcache.c (cache_addpw): In case a record changed on refresh, adjust key_copy. --- diff --git a/ChangeLog b/ChangeLog index 30d4c8291a0..a8652006250 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-02-21 Ulrich Drepper + [BZ #4074] + * nscd/pwdcache.c (cache_addpw): In case a record changed on + refresh, adjust key_copy. + [BZ #4070] * stdio-common/printf_fp.c (___printf_fp): Handle a few more * stdio-common/tfformat.c (sprint_doubles): Some more tests. diff --git a/nscd/pwdcache.c b/nscd/pwdcache.c index 0461ec91ce7..ab41bcc0d56 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;