summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-11-11 01:21:31 +0000
committerTim Potter <tpot@samba.org>2000-11-11 01:21:31 +0000
commit8f338ee3dd5d3b68b36c021a22b624678ea116f6 (patch)
tree839cffc8832daf7f9978bb1d03363ee8167ac7d6 /source3
parent20838bb9ed25d7a325831041f371c11731ff6283 (diff)
downloadsamba-8f338ee3dd5d3b68b36c021a22b624678ea116f6.tar.gz
samba-8f338ee3dd5d3b68b36c021a22b624678ea116f6.tar.bz2
samba-8f338ee3dd5d3b68b36c021a22b624678ea116f6.zip
Fetch authentication info before actually using it.
(This used to be commit 600eb0eb0036631b7e6d8aa7cddbc378368c002c)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbwrapper/smbw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbwrapper/smbw.c b/source3/smbwrapper/smbw.c
index 362f7b4964..0764bc28ad 100644
--- a/source3/smbwrapper/smbw.c
+++ b/source3/smbwrapper/smbw.c
@@ -438,6 +438,8 @@ struct smbw_server *smbw_server(char *server, char *share)
ip = ipzero;
ZERO_STRUCT(c);
+ get_auth_data_fn(server, share, &workgroup, &username, &password);
+
/* try to use an existing connection */
for (srv=smbw_srvs;srv;srv=srv->next) {
if (strcmp(server,srv->server_name)==0 &&
@@ -455,8 +457,6 @@ struct smbw_server *smbw_server(char *server, char *share)
make_nmb_name(&calling, global_myname, 0x0);
make_nmb_name(&called , server, 0x20);
- get_auth_data_fn(server, share, &workgroup, &username, &password);
-
DEBUG(4,("server_n=[%s] server=[%s]\n", server_n, server));
if ((p=strchr(server_n,'#')) && strcmp(p+1,"1D")==0) {