From 87b5c377073c1ee4071aee02ef5f598ad850a92b Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Thu, 7 Jun 2001 22:17:01 +0000 Subject: [PATCH] Fix up the problems with calling smbc_init multiple times. (This used to be commit 832227a72b9c1d965736128ff84ffa235df6ecaf) --- source3/libsmb/libsmbclient.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c index 2b936143380..cdf26e6b235 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; */ -- 2.11.4.GIT