From a30d41c1d2c69b34e6f19dc1f92881f18e75349c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 22 Aug 2007 02:39:47 +0000 Subject: * nscd/hstcache.c (cache_addhst): Minimal optimization. --- nscd/hstcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nscd/hstcache.c') diff --git a/nscd/hstcache.c b/nscd/hstcache.c index 3c9a17f..65adf31 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); -- cgit v1.1