diff options
author | George Hazan <ghazan@miranda.im> | 2017-08-30 12:43:52 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-08-30 12:43:52 +0300 |
commit | 3fdb557d643a405fcef11ce5f12cfdea5d2bc284 (patch) | |
tree | 34307e839ad8653c7e065f7bfa0b988240c960a0 | |
parent | fa1f355c4f8a5aeef4b2e36b2214ddeb90264b6b (diff) |
code cleaning
-rw-r--r-- | protocols/JabberG/src/jabber_secur.cpp | 8 |
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)
|