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 | 22b372f8a7996a19bebb8cdb411df999cffa32a4 (patch) | |
tree | ef460a58cb4149b732609cd7c5e033862ddfb3ab /source/libsmb | |
parent | 55f222236f3a80b2e0b7a1ec278d90d5cf57459f (diff) | |
download | samba-22b372f8a7996a19bebb8cdb411df999cffa32a4.tar.gz samba-22b372f8a7996a19bebb8cdb411df999cffa32a4.tar.xz samba-22b372f8a7996a19bebb8cdb411df999cffa32a4.zip |
fixed handling of 139/445 in clients
Diffstat (limited to 'source/libsmb')
-rw-r--r-- | source/libsmb/cliconnect.c | 2 | ||||
-rw-r--r-- | source/libsmb/clientgen.c | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/source/libsmb/cliconnect.c b/source/libsmb/cliconnect.c index 1628139dd92..8230edbd632 100644 --- a/source/libsmb/cliconnect.c +++ b/source/libsmb/cliconnect.c @@ -274,7 +274,7 @@ BOOL cli_send_tconX(struct cli_state *cli, "%s", share); } else { slprintf(fullshare, sizeof(fullshare)-1, - "\\\\%s\\%s", "foo", share); + "\\\\%s\\%s", cli->desthost, share); } set_message(cli->outbuf,4, 0, True); diff --git a/source/libsmb/clientgen.c b/source/libsmb/clientgen.c index 5ddfa48ac0f..b3933f41e02 100644 --- a/source/libsmb/clientgen.c +++ b/source/libsmb/clientgen.c @@ -31,10 +31,8 @@ extern int DEBUGLEVEL; */ int cli_set_port(struct cli_state *cli, int port) { - if (port > 0) - cli->port = port; - - return cli->port; + cli->port = port; + return port; } /**************************************************************************** |