diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-09-27 04:33:58 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-09-27 04:33:58 +0000 |
commit | d95e86b8b938692ced7802fbfd5331d8cd48cd5e (patch) | |
tree | 277b5f449cc47d4513c9cd85707bb828fa7ca3b9 /source3/utils/net.c | |
parent | 55b6cebbd49be484fb6dcde2f8cb8412bb116276 (diff) | |
download | samba-d95e86b8b938692ced7802fbfd5331d8cd48cd5e.tar.gz samba-d95e86b8b938692ced7802fbfd5331d8cd48cd5e.tar.bz2 samba-d95e86b8b938692ced7802fbfd5331d8cd48cd5e.zip |
Minor updates:
Add const to some more functions, and reintroduce 'net rpc join oldstyle' as
*only* trying an old-style join.
This means that we can rely on it not prompting for a password on the build
farm.
Andrew Bartlett
(This used to be commit 31bdbeef0ea6f30247cd3b30cfea57b34102abe6)
Diffstat (limited to 'source3/utils/net.c')
-rw-r--r-- | source3/utils/net.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c index 800aeded0a..b3b72e2465 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -277,8 +277,13 @@ struct cli_state *net_make_ipc_connection(unsigned flags) } else { nt_status = connect_to_ipc(&cli, &server_ip, server_name); } + SAFE_FREE(server_name); - return cli; + if (NT_STATUS_IS_OK(nt_status)) { + return cli; + } else { + return NULL; + } } static int net_user(int argc, const char **argv) |