From b31c5281461fa42d277be7403d860feae96f2a9f Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Mon, 30 Nov 1998 16:00:27 +0000 Subject: another attempt at a fix on connect_serverlist()... (This used to be commit 603c5f6df8c525f30d00da912d408b98378ea538) --- source3/libsmb/clientgen.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'source3') diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index fc0df84d4a..5f6408bad1 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -2727,14 +2727,6 @@ BOOL cli_connect_serverlist(struct cli_state *cli, char *p) struct nmb_name calling, called; BOOL connected_ok = False; - ZERO_STRUCTP(cli); - - if (!cli_initialise(cli)) - { - DEBUG(0,("cli_connect_serverlist: unable to initialize client connection.\n")); - return False; - } - /* * Treat each name in the 'password server =' line as a potential * PDC/BDC. Contact each in turn and try and authenticate. @@ -2742,6 +2734,14 @@ BOOL cli_connect_serverlist(struct cli_state *cli, char *p) while(p && next_token(&p,remote_machine,LIST_SEP,sizeof(remote_machine))) { + ZERO_STRUCTP(cli); + + if (!cli_initialise(cli)) + { + DEBUG(0,("cli_connect_serverlist: unable to initialize client connection.\n")); + return False; + } + standard_sub_basic(remote_machine); strupper(remote_machine); -- cgit