summaryrefslogtreecommitdiff
path: root/source3/client/client.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-03-26 22:28:12 +0000
committerJeremy Allison <jra@samba.org>2001-03-26 22:28:12 +0000
commit7adb11393e58cc2f93b4079be422160b29ea348d (patch)
tree004425cca8f61a3025fce0ee869544565a0e1e85 /source3/client/client.c
parentfab898f9cd06d136efbd2f1de047c744bdd1fd07 (diff)
downloadsamba-7adb11393e58cc2f93b4079be422160b29ea348d.tar.gz
samba-7adb11393e58cc2f93b4079be422160b29ea348d.tar.bz2
samba-7adb11393e58cc2f93b4079be422160b29ea348d.zip
Missed a cli_set_port on message code connect.
Jeremy. (This used to be commit 799e043ae3a4478b9e42604a3d1c88abbb74f047)
Diffstat (limited to 'source3/client/client.c')
-rw-r--r--source3/client/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 059bde3c41..04a30ffb21 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -2157,7 +2157,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;
}