diff options
author | Luke Leighton <lkcl@samba.org> | 1998-11-30 16:00:27 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-11-30 16:00:27 +0000 |
commit | b31c5281461fa42d277be7403d860feae96f2a9f (patch) | |
tree | 83f96defb4b6a6141b0cafdf4a05b57da0a55713 /source3 | |
parent | 013ff4d6b2648897f9ef0d6f0ba3eccee7353346 (diff) | |
download | samba-b31c5281461fa42d277be7403d860feae96f2a9f.tar.gz samba-b31c5281461fa42d277be7403d860feae96f2a9f.tar.bz2 samba-b31c5281461fa42d277be7403d860feae96f2a9f.zip |
another attempt at a fix on connect_serverlist()...
(This used to be commit 603c5f6df8c525f30d00da912d408b98378ea538)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/clientgen.c | 16 |
1 files changed, 8 insertions, 8 deletions
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); |