From 25a6a677df156d0035c62d2fa86c7ba234333297 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 29 Nov 2007 15:16:06 +0100 Subject: Allow calling "net rpc join" and "net rpc trustdom" without specifying server IP. This was a logic bug (typo) in a call to get_pdc_ip() in net_find_server(). Michael (This used to be commit 988c5ff3f47b7508b229464bbed2ca1948d6e27c) --- source3/utils/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit