diff options
author | Richard Sharpe <sharpe@samba.org> | 2001-06-07 22:17:01 +0000 |
---|---|---|
committer | Richard Sharpe <sharpe@samba.org> | 2001-06-07 22:17:01 +0000 |
commit | 87b5c377073c1ee4071aee02ef5f598ad850a92b (patch) | |
tree | d7bd7135c6fb9ea1d229baa6968c7084a90c5fab | |
parent | 6ef6cc65d63bd5df0826cc0aa8d817a4606d473e (diff) | |
download | samba-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)
-rw-r--r-- | source3/libsmb/libsmbclient.c | 6 |
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; */ |