diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-08-24 20:11:09 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-08-24 20:11:09 +0000 |
commit | 464237cdb8d4f4c4c93d9cf24f38f2720ea99b9c (patch) | |
tree | f0d1b43ceb06b275bf399583119a8f76e9810813 /source3/client/client.c | |
parent | 1399170a7716ba9ca2d71ef7f0e68d132a4172b4 (diff) | |
download | samba-464237cdb8d4f4c4c93d9cf24f38f2720ea99b9c.tar.gz samba-464237cdb8d4f4c4c93d9cf24f38f2720ea99b9c.tar.bz2 samba-464237cdb8d4f4c4c93d9cf24f38f2720ea99b9c.zip |
fixed handling of 139/445 in clients
(This used to be commit 22b372f8a7996a19bebb8cdb411df999cffa32a4)
Diffstat (limited to 'source3/client/client.c')
-rw-r--r-- | source3/client/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 29e23654fb..88191347b1 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -29,7 +29,7 @@ struct cli_state *cli; extern BOOL in_client; -static int port = SMB_PORT; +static int port = 0; pstring cur_dir = "\\"; pstring cd_path = ""; static pstring service; @@ -1995,7 +1995,7 @@ struct cli_state *do_connect(const char *server, const char *share) if (have_ip) ip = dest_ip; /* have to open a new connection */ - if (!(c=cli_initialise(NULL)) || (cli_set_port(c, port) == 0) || + if (!(c=cli_initialise(NULL)) || (cli_set_port(c, port) != port) || !cli_connect(c, server_n, &ip)) { DEBUG(0,("Connection to %s failed\n", server_n)); return NULL; @@ -2253,7 +2253,7 @@ static int do_message_op(void) ip = ipzero; if (have_ip) ip = dest_ip; - if (!(cli=cli_initialise(NULL)) || (cli_set_port(cli, port) == 0) || !cli_connect(cli, desthost, &ip)) { + if (!(cli=cli_initialise(NULL)) || (cli_set_port(cli, port) != port) || !cli_connect(cli, desthost, &ip)) { DEBUG(0,("Connection to %s failed\n", desthost)); return 1; } |