summaryrefslogtreecommitdiff
path: root/source3/utils/net_lookup.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-08-28 09:19:30 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:57 -0500
commitc52b3fb89f29110d2c2026a540e5dd39826bb799 (patch)
treec78a8876d311a2696627a4b910b58501c5e358e6 /source3/utils/net_lookup.c
parente09daab0157e1c9fc9ab29627f9ca612456eed8c (diff)
downloadsamba-c52b3fb89f29110d2c2026a540e5dd39826bb799.tar.gz
samba-c52b3fb89f29110d2c2026a540e5dd39826bb799.tar.bz2
samba-c52b3fb89f29110d2c2026a540e5dd39826bb799.zip
r17881: Another microstep towards better error reporting: Make get_sorted_dc_list
return NTSTATUS. If we want to differentiate different name resolution problems we might want to introduce yet another error class for Samba-internal errors. Things like no route to host to the WINS server, a DNS server explicitly said host not found etc might be worth passing up. Because we can not stash everything into the existing NT_STATUS codes, what about a Samba-specific error class like NT_STATUS_DOS and NT_STATUS_LDAP? Volker (This used to be commit 60a166f0347170dff38554bed46193ce1226c8c1)
Diffstat (limited to 'source3/utils/net_lookup.c')
-rw-r--r--source3/utils/net_lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_lookup.c b/source3/utils/net_lookup.c
index 68097aa9f7..8e1450cfa0 100644
--- a/source3/utils/net_lookup.c
+++ b/source3/utils/net_lookup.c
@@ -165,7 +165,7 @@ static int net_lookup_dc(int argc, const char **argv)
asprintf(&pdc_str, "%s", inet_ntoa(addr));
d_printf("%s\n", pdc_str);
- if (!get_sorted_dc_list(domain, &ip_list, &count, False)) {
+ if (!NT_STATUS_IS_OK(get_sorted_dc_list(domain, &ip_list, &count, False))) {
SAFE_FREE(pdc_str);
return 0;
}