diff options
-rw-r--r-- | xbmc/filesystem/SmbFile.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xbmc/filesystem/SmbFile.cpp b/xbmc/filesystem/SmbFile.cpp index 382553c42b..c39003133f 100644 --- a/xbmc/filesystem/SmbFile.cpp +++ b/xbmc/filesystem/SmbFile.cpp @@ -61,7 +61,6 @@ CSMB::CSMB() m_IdleTimeout = 0; #endif m_context = NULL; - smbc_init(xb_smbc_auth, 0); } CSMB::~CSMB() @@ -149,6 +148,10 @@ void CSMB::Init() } #endif + // reads smb.conf so this MUST be after we create smb.conf + // multiple smbc_init calls are ignored by libsmbclient. + smbc_init(xb_smbc_auth, 0); + #ifdef TARGET_WINDOWS // set the log function set_log_callback(xb_smbc_log); |