summaryrefslogtreecommitdiff
path: root/source3/libsmb/namequery.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-11-26 11:57:30 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-11-26 11:57:30 +0000
commit65643516d760c4e61ba6f4406f442f7e9bd10f2f (patch)
tree0cf648ed7049ddbcb66d7f7b722ca31aa74cd445 /source3/libsmb/namequery.c
parent585e8a8c02f78a072b98f681fda5748c3d9924ab (diff)
downloadsamba-65643516d760c4e61ba6f4406f442f7e9bd10f2f.tar.gz
samba-65643516d760c4e61ba6f4406f442f7e9bd10f2f.tar.bz2
samba-65643516d760c4e61ba6f4406f442f7e9bd10f2f.zip
Having waited for *way* too long, this is mimir's namecache and trusted domain
cache code. This uses gencache, mimir's new caching code that stores at text-based cache of various data. Mimir has done a *lot* of work on this patch, and it is finally time to get it in CVS. Andrew Bartlett (This used to be commit 47f3bfe9564e7f3aff60cefaefd599e0abb30a31)
Diffstat (limited to 'source3/libsmb/namequery.c')
-rw-r--r--source3/libsmb/namequery.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index 6190c872ee..1c5af8bff0 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -837,11 +837,6 @@ static BOOL internal_resolve_name(const char *name, int name_type,
if (resolve_hosts(name, return_iplist, return_count)) {
result = True;
goto done;
- } else {
-
- /* Store negative lookup result */
-
- namecache_store(name, name_type, 0, NULL);
}
}
} else if(strequal( tok, "lmhosts")) {
@@ -916,7 +911,10 @@ static BOOL internal_resolve_name(const char *name, int name_type,
}
/* Save in name cache */
-
+ for (i = 0; i < *return_count && DEBUGLEVEL == 100; i++)
+ DEBUG(100, ("Storing name %s of type %d (ip: %s)\n", name,
+ name_type, inet_ntoa(*return_iplist[i])));
+
namecache_store(name, name_type, *return_count, *return_iplist);
/* Display some debugging info */