From 3fdb557d643a405fcef11ce5f12cfdea5d2bc284 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 30 Aug 2017 12:43:52 +0300 Subject: code cleaning --- protocols/JabberG/src/jabber_secur.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/JabberG/src/jabber_secur.cpp') 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) -- cgit v1.2.3