summaryrefslogtreecommitdiff
path: root/nscd/hstcache.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-08-22 02:39:47 +0000
committerUlrich Drepper <drepper@redhat.com>2007-08-22 02:39:47 +0000
commita30d41c1d2c69b34e6f19dc1f92881f18e75349c (patch)
treed56d0435f654382466cdbfbecb92d9af335da75d /nscd/hstcache.c
parent2a01ce56b7d585c0e760ba27e0a07819f3b8b723 (diff)
downloadglibc-a30d41c1d2c69b34e6f19dc1f92881f18e75349c.tar.gz
* nscd/hstcache.c (cache_addhst): Minimal optimization.
Diffstat (limited to 'nscd/hstcache.c')
-rw-r--r--nscd/hstcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nscd/hstcache.c b/nscd/hstcache.c
index 3c9a17fee8..65adf318c5 100644
--- a/nscd/hstcache.c
+++ b/nscd/hstcache.c
@@ -221,7 +221,7 @@ cache_addhst (struct database_dyn *db, int fd, request_header *req,
the current cache handling cannot handle and it is more than
questionable whether it is worthwhile complicating the cache
handling just for handling such a special case. */
- if (he == NULL && hst->h_addr_list[1] == NULL)
+ if (he == NULL && h_addr_list_cnt == 1)
{
dataset = (struct dataset *) mempool_alloc (db,
total + req->key_len);