diff options
author | Michael Adam <obnox@samba.org> | 2007-11-29 15:16:06 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2007-11-29 15:16:45 +0100 |
commit | 25a6a677df156d0035c62d2fa86c7ba234333297 (patch) | |
tree | 8549ee7b82ed5b0273451a83aaf7c46628e3e760 /source3 | |
parent | a605be73148ae0979c14263be1f969700f7055f6 (diff) | |
download | samba-25a6a677df156d0035c62d2fa86c7ba234333297.tar.gz samba-25a6a677df156d0035c62d2fa86c7ba234333297.tar.bz2 samba-25a6a677df156d0035c62d2fa86c7ba234333297.zip |
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)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/net.c | 2 |
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; } |