1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

Missed a cli_set_port on message code connect.

Jeremy.
(This used to be commit 799e043ae3)
This commit is contained in:
Jeremy Allison 2001-03-26 22:28:12 +00:00
parent fab898f9cd
commit 7adb11393e

View File

@ -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;
}