From 907f085296e4c61410a7a0e2cfcd6a9db8176b16 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 14 Jan 2009 16:08:19 -0800 Subject: Remove smbclient globals that bled into clidfs.c. Now we only have the connections list and authentication structures to worry about. Jeremy --- source3/libsmb/cliconnect.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source3/libsmb/cliconnect.c') diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index bf0d270bab..b446879140 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -1747,11 +1747,7 @@ NTSTATUS cli_start_connection(struct cli_state **output_cli, make_nmb_name(&calling, my_name, 0x0); make_nmb_name(&called , dest_host, 0x20); - if (cli_set_port(cli, port) != port) { - cli_shutdown(cli); - return NT_STATUS_UNSUCCESSFUL; - } - + cli_set_port(cli, port); cli_set_timeout(cli, 10000); /* 10 seconds. */ if (dest_ss) { -- cgit