diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-02-21 09:11:47 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-02-21 09:11:47 +0000 |
commit | c8703f884991059dcaea8a78a4ae00ff7b1118eb (patch) | |
tree | 124997c7857db00525f25f3cc0404a38e4b0cc12 /nscd/servicescache.c | |
parent | 61705e06e11f119b447dffa44450363d61c6cb18 (diff) | |
download | glibc-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/servicescache.c')
-rw-r--r-- | nscd/servicescache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nscd/servicescache.c b/nscd/servicescache.c index ea4fa35100..8c3a9516ba 100644 --- a/nscd/servicescache.c +++ b/nscd/servicescache.c @@ -264,8 +264,8 @@ cache_addserv (struct database_dyn *db, int fd, request_header *req, { /* Adjust pointers into the memory block. */ aliases = (char *) newp + (aliases - (char *) dataset); - if (key_copy != NULL) - key_copy = (char *) newp + (key_copy - (char *) dataset); + assert (key_copy != NULL); + key_copy = (char *) newp + (key_copy - (char *) dataset); dataset = memcpy (newp, dataset, total + req->key_len); alloca_used = false; |