summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/utils/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c
index 2390e5842c..8015358f7d 100644
--- a/source3/utils/net.c
+++ b/source3/utils/net.c
@@ -414,7 +414,7 @@ bool net_find_server(const char *domain,
fstring dc_name;
struct sockaddr_storage pdc_ss;
- if (get_pdc_ip(d, &pdc_ss)) {
+ if (!get_pdc_ip(d, &pdc_ss)) {
DEBUG(1,("Unable to resolve PDC server address\n"));
return false;
}