summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-03-26 22:28:42 +0000
committerJeremy Allison <jra@samba.org>2001-03-26 22:28:42 +0000
commit4fbf77a8b1272c6893acd04e084a55c6fe2389e4 (patch)
tree25ac139756ee99b41ba787364294e3fef7d95d06 /source
parent8efcc1054f0face68afffad965d5df7045158d53 (diff)
downloadsamba-4fbf77a8b1272c6893acd04e084a55c6fe2389e4.tar.gz
samba-4fbf77a8b1272c6893acd04e084a55c6fe2389e4.tar.xz
samba-4fbf77a8b1272c6893acd04e084a55c6fe2389e4.zip
Missed a cli_set_port on message code connect.
Jeremy.
Diffstat (limited to 'source')
-rw-r--r--source/client/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/client/client.c b/source/client/client.c
index 3f9eeac368e..7f977c06799 100644
--- a/source/client/client.c
+++ b/source/client/client.c
@@ -2155,7 +2155,7 @@ static int do_message_op(void)
ip = ipzero;
if (have_ip) ip = dest_ip;
- if (!(cli=cli_initialise(NULL)) || !cli_connect(cli, desthost, &ip)) {
+ if (!(cli=cli_initialise(NULL)) || (cli_set_port(cli, port) == 0) || !cli_connect(cli, desthost, &ip)) {
DEBUG(0,("Connection to %s failed\n", desthost));
return 1;
}