mirror of git://sourceware.org/git/glibc.git
* 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.
This commit is contained in:
parent
61705e06e1
commit
c8703f8849
|
@ -1,5 +1,11 @@
|
||||||
2007-02-21 Ulrich Drepper <drepper@redhat.com>
|
2007-02-21 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
[BZ #4074]
|
[BZ #4074]
|
||||||
* nscd/pwdcache.c (cache_addpw): In case a record changed on
|
* nscd/pwdcache.c (cache_addpw): In case a record changed on
|
||||||
refresh, adjust key_copy.
|
refresh, adjust key_copy.
|
||||||
|
|
|
@ -279,6 +279,7 @@ cache_addgr (struct database_dyn *db, int fd, request_header *req,
|
||||||
/* Adjust pointers into the memory block. */
|
/* Adjust pointers into the memory block. */
|
||||||
gr_name = (char *) newp + (gr_name - (char *) dataset);
|
gr_name = (char *) newp + (gr_name - (char *) dataset);
|
||||||
cp = (char *) newp + (cp - (char *) dataset);
|
cp = (char *) newp + (cp - (char *) dataset);
|
||||||
|
key_copy = (char *) newp + (key_copy - (char *) dataset);
|
||||||
|
|
||||||
dataset = memcpy (newp, dataset, total + n);
|
dataset = memcpy (newp, dataset, total + n);
|
||||||
alloca_used = false;
|
alloca_used = false;
|
||||||
|
|
|
@ -311,8 +311,8 @@ cache_addhst (struct database_dyn *db, int fd, request_header *req,
|
||||||
/* Adjust pointers into the memory block. */
|
/* Adjust pointers into the memory block. */
|
||||||
addresses = (char *) newp + (addresses - (char *) dataset);
|
addresses = (char *) newp + (addresses - (char *) dataset);
|
||||||
aliases = (char *) newp + (aliases - (char *) dataset);
|
aliases = (char *) newp + (aliases - (char *) dataset);
|
||||||
if (key_copy != NULL)
|
assert (key_copy != NULL);
|
||||||
key_copy = (char *) newp + (key_copy - (char *) dataset);
|
key_copy = (char *) newp + (key_copy - (char *) dataset);
|
||||||
|
|
||||||
dataset = memcpy (newp, dataset, total + req->key_len);
|
dataset = memcpy (newp, dataset, total + req->key_len);
|
||||||
alloca_used = false;
|
alloca_used = false;
|
||||||
|
|
|
@ -264,8 +264,8 @@ cache_addserv (struct database_dyn *db, int fd, request_header *req,
|
||||||
{
|
{
|
||||||
/* Adjust pointers into the memory block. */
|
/* Adjust pointers into the memory block. */
|
||||||
aliases = (char *) newp + (aliases - (char *) dataset);
|
aliases = (char *) newp + (aliases - (char *) dataset);
|
||||||
if (key_copy != NULL)
|
assert (key_copy != NULL);
|
||||||
key_copy = (char *) newp + (key_copy - (char *) dataset);
|
key_copy = (char *) newp + (key_copy - (char *) dataset);
|
||||||
|
|
||||||
dataset = memcpy (newp, dataset, total + req->key_len);
|
dataset = memcpy (newp, dataset, total + req->key_len);
|
||||||
alloca_used = false;
|
alloca_used = false;
|
||||||
|
|
Loading…
Reference in New Issue