summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_secur.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-08-30 12:43:52 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-08-30 12:43:52 +0300
commit3fdb557d643a405fcef11ce5f12cfdea5d2bc284 (patch)
tree34307e839ad8653c7e065f7bfa0b988240c960a0 /protocols/JabberG/src/jabber_secur.cpp
parentfa1f355c4f8a5aeef4b2e36b2214ddeb90264b6b (diff)
code cleaning
Diffstat (limited to 'protocols/JabberG/src/jabber_secur.cpp')
-rw-r--r--protocols/JabberG/src/jabber_secur.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_secur.cpp b/protocols/JabberG/src/jabber_secur.cpp
index 339c3d4f09..d3eea40481 100644
--- a/protocols/JabberG/src/jabber_secur.cpp
+++ b/protocols/JabberG/src/jabber_secur.cpp
@@ -28,7 +28,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/////////////////////////////////////////////////////////////////////////////////////////
// ntlm auth - LanServer based authorization
-TNtlmAuth::TNtlmAuth(ThreadData *info, const char* mechanism, const wchar_t *hostname) :
+TNtlmAuth::TNtlmAuth(ThreadData *info, const char *mechanism, const wchar_t *hostname) :
TJabberAuth(info)
{
szName = mechanism;
@@ -48,9 +48,9 @@ LBL_Invalid:
return;
}
- wchar_t szSpn[1024] = L"";
- if (mir_strcmp(mechanism, "NTLM"))
- if (!getSpn(szSpn, _countof(szSpn)) && !mir_strcmp(mechanism, "GSSAPI"))
+ wchar_t szSpn[1024]; szSpn[0] = 0;
+ if (!mir_strcmp(mechanism, "GSSAPI"))
+ if (!getSpn(szSpn, _countof(szSpn)))
goto LBL_Invalid;
if ((hProvider = Netlib_InitSecurityProvider(szProvider, szSpn)) == nullptr)