summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2001-06-07 22:17:01 +0000
committerRichard Sharpe <sharpe@samba.org>2001-06-07 22:17:01 +0000
commit87b5c377073c1ee4071aee02ef5f598ad850a92b (patch)
treed7bd7135c6fb9ea1d229baa6968c7084a90c5fab /source3/libsmb
parent6ef6cc65d63bd5df0826cc0aa8d817a4606d473e (diff)
downloadsamba-87b5c377073c1ee4071aee02ef5f598ad850a92b.tar.gz
samba-87b5c377073c1ee4071aee02ef5f598ad850a92b.tar.bz2
samba-87b5c377073c1ee4071aee02ef5f598ad850a92b.zip
Fix up the problems with calling smbc_init multiple times.
(This used to be commit 832227a72b9c1d965736128ff84ffa235df6ecaf)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/libsmbclient.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c
index 2b93614338..cdf26e6b23 100644
--- a/source3/libsmb/libsmbclient.c
+++ b/source3/libsmb/libsmbclient.c
@@ -412,6 +412,12 @@ int smbc_init(smbc_get_auth_data_fn fn, int debug)
}
+ if (smbc_initialize) { /* Don't go through this if we have already done it */
+
+ return 0;
+
+ }
+
smbc_initialized = 1;
smbc_auth_fn = fn;
/* smbc_debug = debug; */