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/libsmb/clientgen.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/libsmb/clientgen.c')
-rw-r--r-- | source3/libsmb/clientgen.c | 6 |
1 files changed, 2 insertions, 4 deletions
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; } /**************************************************************************** |