summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-08-24 20:11:09 +0000
committerAndrew Tridgell <tridge@samba.org>2001-08-24 20:11:09 +0000
commit464237cdb8d4f4c4c93d9cf24f38f2720ea99b9c (patch)
treef0d1b43ceb06b275bf399583119a8f76e9810813 /source3/libsmb
parent1399170a7716ba9ca2d71ef7f0e68d132a4172b4 (diff)
downloadsamba-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/libsmb')
-rw-r--r--source3/libsmb/cliconnect.c2
-rw-r--r--source3/libsmb/clientgen.c6
2 files changed, 3 insertions, 5 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 1628139dd9..8230edbd63 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/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/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 5ddfa48ac0..b3933f41e0 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/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;
}
/****************************************************************************