summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/namequery.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index af3ac319cc..5cd09fd04f 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -1197,6 +1197,8 @@ BOOL internal_resolve_name(const char *name, int name_type,
SRV record lookup */
if (resolve_ads(name, KDC_NAME_TYPE, return_iplist, return_count)) {
result = True;
+ /* Ensure we don't namecache this with the KDC port. */
+ name_type = KDC_NAME_TYPE;
goto done;
}
} else if(strequal( tok, "ads")) {